Skip to content

Commit

Permalink
Handle case when scope object is null
Browse files Browse the repository at this point in the history
  • Loading branch information
melton-jason committed Jan 26, 2024
1 parent 001b1e2 commit 6988b10
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ export class BusinessRuleManager<SCHEMA extends AnySchema> {
])
);

if (Object.values(partialFilters).includes(undefined))
if (Object.values(partialFilters).includes(undefined) || partialFilters[rule.scopes[0]] === null)
return { valid: true };

return new this.resource.specifyModel.LazyCollection({
Expand Down

0 comments on commit 6988b10

Please sign in to comment.