Explorar o código

tiny correction

Falko Schindler hai 1 ano
pai
achega
91620c444b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
       }
     },
   },