Fix crash when passing invalid attrs to declare

This commit is contained in:
Zaid Abdulla committed 2021-07-13 17:00:59 -07:00
1 parent 9cf18503ee
commit 8b27794cc7
1 file changed
+1 -1
+1 -1
View File
@@ -2290,7 +2290,7 @@ function processDeclarations(
syncState.refreshAttributes.object.add(currentPath);
else if (currentAttributes.object[1] === 0)
syncState.refreshAttributes.value.add(currentPath);
} else {
} else if (attrName in syncState.refreshAttributes) {
syncState.refreshAttributes[attrName].add(currentPath);
}
}