Parcourir la source

tiny correction

Falko Schindler il y a 1 an
Parent
commit
91620c444b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      nicegui/elements/json_editor.js

+ 1 - 1
nicegui/elements/json_editor.js

@@ -34,7 +34,7 @@ export default {
     run_editor_method(name, ...args) {
       if (this.editor) {
         const evaluated_args = args.map((arg) => new Function("return " + arg)());
-        return this.editor[name](evaluated_args);
+        return this.editor[name](...evaluated_args);
       }
     },
   },