Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/experiment-core/src/evaluation/evaluation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class EvaluationEngine {
// We need special matching for null properties and set type prop values
// and operators. All other values are matched as strings, since the
// filter values are always strings.
if (!propValue) {
if (propValue === undefined || propValue === null) {
return this.matchNull(condition.op, condition.values);
} else if (this.isSetOperator(condition.op)) {
const propValueStringList = this.coerceStringArray(propValue);
Expand Down
2 changes: 1 addition & 1 deletion packages/experiment-core/src/evaluation/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const select = (
}
selectable = (selectable as Record<string, unknown>)[selectorElement];
}
if (!selectable) {
if (selectable === undefined || selectable === null) {
return undefined;
} else {
return selectable;
Expand Down
Loading