Explorar o código

fix: new program editing exception

Casper Dai hai 1 ano
pai
achega
7a524cc955
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,