We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3d62b7 commit 4953a6cCopy full SHA for 4953a6c
src/rules-engine/data-processors/dgraph-data-processor.ts
@@ -198,6 +198,11 @@ export default class DgraphDataProcessor implements DataProcessor {
198
}
199
200
prepareRulesMetadataMutations = (rules: Rule[] = []): Entity[] => {
201
+ // Return an empty array if there are no rules
202
+ if (isEmpty(rules)) {
203
+ return []
204
+ }
205
+
206
return [
207
{
208
name: 'ruleMetadata',
0 commit comments