Skip to content

Commit

Permalink
Handle null values in code fields
Browse files Browse the repository at this point in the history
  • Loading branch information
bakerkretzmar committed Jul 26, 2022
1 parent 132843f commit 9d348e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/js/tool.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/js/CodeSetting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default {
value: cm.getValue(),
});
});
this.codemirror?.getDoc()?.setValue(this.setting.value);
this.codemirror?.getDoc()?.setValue(this.setting.value ?? '');
this.codemirror?.setSize('100%');
},
};
Expand Down

0 comments on commit 9d348e3

Please sign in to comment.