Skip to content

Commit

Permalink
🐛 Fix createScene not working when no index is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
leolabs committed Nov 6, 2023
1 parent 659bb7d commit e6bf99b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ns/song.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export class Song extends Namespace<
}

public async createScene(index?: number) {
return this.sendCommand("create_scene", [index]);
return this.sendCommand("create_scene", [index ?? -1]);
}

public async deleteReturnTrack(index: number) {
Expand Down

0 comments on commit e6bf99b

Please sign in to comment.