fix copy script function

This commit is contained in:
2023-09-28 22:20:41 +02:00
parent a08eefae2d
commit 78176b1d10

View File

@ -286,8 +286,9 @@ export class UserAPI {
* @param from - The script to copy from * @param from - The script to copy from
* @param to - The script to copy to * @param to - The script to copy to
*/ */
this.app.universes[this.app.selected_universe].locals[to] = this.app.universes[this.app.selected_universe].locals[to] = {
this.app.universes[this.app.selected_universe].locals[from]; ...this.app.universes[this.app.selected_universe].locals[from],
};
}; };
cps = this.copy_script; cps = this.copy_script;