Falko Schindler преди 1 година
родител
ревизия
91620c444b
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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);
       }
     },
   },