File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
packages/renderer/src/components Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ import 'splitpanes/dist/splitpanes.css';
4646
4747type mdData = {
4848 editor: ace .Editor | null ,
49- markdownCode: string | null ,
49+ markdownCode: string | undefined ,
5050 content: string | undefined ,
5151}
5252
@@ -56,7 +56,7 @@ export default defineComponent({
5656 setup() {
5757 const markDownData: mdData = reactive ({
5858 editor: null ,
59- markdownCode: null ,
59+ markdownCode: undefined ,
6060 content: undefined ,
6161 });
6262
@@ -67,7 +67,9 @@ export default defineComponent({
6767 });
6868
6969 ipcRendReceive (' fetch-data' , () => {
70- ipcSendData (markDownData .markdownCode );
70+ if (markDownData .markdownCode ) {
71+ ipcSendData (markDownData .markdownCode );
72+ }
7173 });
7274
7375 function initAceEditor()
You can’t perform that action at this time.
0 commit comments