Explorar o código

fix: 修复表结构预览

nobody %!s(int64=2) %!d(string=hai) anos
pai
achega
99525296f0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/module/datasource/component/DataTableStruct.jsx

+ 1 - 1
src/module/datasource/component/DataTableStruct.jsx

@@ -21,7 +21,7 @@ export default function DataTableStruct({ currentStep, tableData, datax, onRef }
 
   useImperativeHandle(onRef, () => {
     return {
-      jsonValue: jsonValue.current.jsonValue,
+      jsonValue: jsonValue.current ? jsonValue.current.jsonValue : {},
     }
   })