Skip to content

Commit

Permalink
fix: ?property formula, resolve #205
Browse files Browse the repository at this point in the history
  • Loading branch information
yhx-12243 committed Dec 10, 2024
1 parent e3004a6 commit b2a0bc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/Formula.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export function evaluate<T, V extends boolean | null = boolean>(
if (f.value === null) {
return !known
}
if (!known) {
if (!known || traits.get(f.property) === null) {
return undefined
}
return traits.get(f.property) === f.value
Expand Down

0 comments on commit b2a0bc2

Please sign in to comment.