Quellcode durchsuchen

fix: new program editing exception

Casper Dai vor 1 Jahr
Ursprung
Commit
7a524cc955
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/views/screen/material/program/ast/index.vue

+ 1 - 1
src/views/screen/material/program/ast/index.vue

@@ -55,7 +55,7 @@ export default {
               return
             }
 
-            const widget = JSON.parse(itemJsonStr)
+            const widget = itemJsonStr ? JSON.parse(itemJsonStr) : null
 
             this.program = {
               id, name, resolutionRatio,