Skip to content

Commit 9d348e3

Browse files
committed
Handle null values in code fields
1 parent 132843f commit 9d348e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/js/tool.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/js/CodeSetting.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default {
4848
value: cm.getValue(),
4949
});
5050
});
51-
this.codemirror?.getDoc()?.setValue(this.setting.value);
51+
this.codemirror?.getDoc()?.setValue(this.setting.value ?? '');
5252
this.codemirror?.setSize('100%');
5353
},
5454
};

0 commit comments

Comments
 (0)