Skip to content

Commit

Permalink
fix error with saving street
Browse files Browse the repository at this point in the history
  • Loading branch information
Algorush committed Dec 5, 2023
1 parent eb2b5c2 commit bb9cdfd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/json-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,8 @@ function getModifiedProperty(entity, componentName) {
}
const diff = {};
for (const key in data) {
let defaultValue
try {
defaultValue = defaultData[key].default;
} catch {
defaultValue = '';
}
// in case the property value is not in schema, but needs to be saved
const defaultValue = (defaultData[key]) ? defaultData[key].default : '';
const currentValue = data[key];

if (
Expand Down

0 comments on commit bb9cdfd

Please sign in to comment.