You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The $notnil selector doesn't work, and I know why. In your code you have:
// when prop has no value, we pretent value is $nil to be able to kick off $nil hook later.
if (isNil(correspondingSourceValue)) {
correspondingSourceValue = $nil;
}
// ...
if (!isNil(valueVariations[$notnil]) && !isNil(correspondingSourceValue)) {
matchingVariations = [valueVariations[$notnil], matchingVariations].filter(Boolean).join(" ");
}
Because you set correspondingSourceValue to $nil, the check !isNil(correspondingSourceValue) does not become true. Instead, you can check with !isNil(source[prop])
The text was updated successfully, but these errors were encountered:
Hey,
The $notnil selector doesn't work, and I know why. In your code you have:
Because you set
correspondingSourceValue
to$nil
, the check!isNil(correspondingSourceValue)
does not become true. Instead, you can check with!isNil(source[prop])
The text was updated successfully, but these errors were encountered: