Skip to content

Commit

Permalink
cleanSchemaMap contained incorrect logic
Browse files Browse the repository at this point in the history
`cleanSchemaMap` contained incorrect logic, which caused some wierd issues when using dependencies inside arrays (and possibly deeper nested structures)
  • Loading branch information
madsmtm authored Sep 2, 2017
1 parent 126a8d4 commit 963b9fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/brutusin-json-forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,7 @@ if (typeof brutusin === "undefined") {

function cleanSchemaMap(schemaId) {
for (var prop in schemaMap) {
if (schemaId.startsWith(prop)) {
if (prop.startsWith(schemaId)) {
delete schemaMap[prop];
}
}
Expand Down

0 comments on commit 963b9fe

Please sign in to comment.