Skip to content

Commit

Permalink
fix copy script function
Browse files Browse the repository at this point in the history
  • Loading branch information
Bubobubobubobubo committed Sep 28, 2023
1 parent a08eefa commit 78176b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/API.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,9 @@ export class UserAPI {
* @param from - The script to copy from
* @param to - The script to copy 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[to] = {
...this.app.universes[this.app.selected_universe].locals[from],
};
};
cps = this.copy_script;

Expand Down

0 comments on commit 78176b1

Please sign in to comment.