Skip to content

Commit

Permalink
fix: new field default value unknown instead 'noval'
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed Jul 22, 2021
1 parent d1d8592 commit 77c5d28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/components/WorkspacePropsTableRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -450,15 +450,15 @@ export default {
});
this.defaultValue.onUpdate = this.localRow.onUpdate;
this.defaultValue.type = this.localRow.defaultType;
this.defaultValue.type = this.localRow.defaultType || 'noval';
if (this.defaultValue.type === 'custom') {
this.defaultValue.custom = this.localRow.default
? this.localRow.default.includes('\'')
? this.localRow.default.split('\'')[1]
: this.localRow.default
: '';
}
if (this.defaultValue.type === 'expression')
else if (this.defaultValue.type === 'expression')
this.defaultValue.expression = this.localRow.default;
},
editON (event, content, field) {
Expand Down

0 comments on commit 77c5d28

Please sign in to comment.