Browse Source

Resolve render node variable after get moreDetails,frame render issue

Borys Palka 5 years ago
parent
commit
49b58c6131
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/variables/body/index.tsx

+ 2 - 2
src/variables/body/index.tsx

@@ -31,7 +31,7 @@ const VariableComponent = ({ model }: { model: Variables.Model }) => {
   const filterVariable = (
     variable: Variables.IVariable,
     isObject?: boolean,
-    v?: any
+    keyObj?: string
   ): Object => {
     const tableKey = ['name', 'value', 'type'];
     const filteredObj = Object.keys(variable)
@@ -53,7 +53,7 @@ const VariableComponent = ({ model }: { model: Variables.Model }) => {
         }
         if (isObject) {
           return Object.assign(res, {
-            [v]: valueOfKey
+            [keyObj]: valueOfKey
           });
         }