Fix crash when passing invalid attrs to declare
This commit is contained in:
1 parent
9cf18503ee
commit
8b27794cc7
1 file changed
+1
-1
+1
-1
@@ -2290,7 +2290,7 @@ function processDeclarations(
|
|||||||
syncState.refreshAttributes.object.add(currentPath);
|
syncState.refreshAttributes.object.add(currentPath);
|
||||||
else if (currentAttributes.object[1] === 0)
|
else if (currentAttributes.object[1] === 0)
|
||||||
syncState.refreshAttributes.value.add(currentPath);
|
syncState.refreshAttributes.value.add(currentPath);
|
||||||
} else {
|
} else if (attrName in syncState.refreshAttributes) {
|
||||||
syncState.refreshAttributes[attrName].add(currentPath);
|
syncState.refreshAttributes[attrName].add(currentPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user