Selaa lähdekoodia

fix: new program editing exception

Casper Dai 1 vuosi sitten
vanhempi
sitoutus
7a524cc955
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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,