includes to indexof
This commit is contained in:
@@ -43,7 +43,8 @@ export class DOBlock {
|
||||
}
|
||||
|
||||
public add_note(noteNumber: number): void {
|
||||
if (!this.data.notes.includes(noteNumber)) {
|
||||
const find = this.data.notes.indexOf(noteNumber)
|
||||
if (find < 0) {
|
||||
this.data.notes.push(noteNumber)
|
||||
StorageManager.getInstance().onStageChanged()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user