Skip to content

Commit 44dd953

Browse files
authored
Merge pull request #100 from madsmtm/patch-1
`cleanSchemaMap` contained incorrect logic
2 parents 126a8d4 + 963b9fe commit 44dd953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/brutusin-json-forms.js

+1-1
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)