Skip to content

Commit 963b9fe

Browse files
authored
cleanSchemaMap contained incorrect logic
`cleanSchemaMap` contained incorrect logic, which caused some wierd issues when using dependencies inside arrays (and possibly deeper nested structures)
1 parent 126a8d4 commit 963b9fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/brutusin-json-forms.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1311,7 +1311,7 @@ if (typeof brutusin === "undefined") {
13111311

13121312
function cleanSchemaMap(schemaId) {
13131313
for (var prop in schemaMap) {
1314-
if (schemaId.startsWith(prop)) {
1314+
if (prop.startsWith(schemaId)) {
13151315
delete schemaMap[prop];
13161316
}
13171317
}

0 commit comments

Comments
 (0)