diff --git a/src/action-queue.ts b/src/action-queue.ts index 61ab32d..4fdfca1 100644 --- a/src/action-queue.ts +++ b/src/action-queue.ts @@ -9,15 +9,8 @@ export class ActionQueue { private runningPromise?: Promise add(action: Action) { - const lastAction = this.actions[this.actions.length - 1] - if (lastAction?.id === action.id) { - this.actions[this.actions.length - 1] = action - } else { - this.actions.push(action) - } - + this.actions.push(action) this.actions.sort((a, b) => a.priority - b.priority) - this.runActions() }