Review fixes

This commit is contained in:
Marcel Mraz 2025-05-02 16:37:33 +02:00
parent 9cce9b572e
commit 12a93fc372
No known key found for this signature in database
GPG key ID: 4EBD6E62DC830CD2
2 changed files with 2 additions and 7 deletions

View file

@ -310,12 +310,7 @@ export class Store {
}
private flushMicroActions() {
const microActions = [...this.scheduledMicroActions];
// clear the queue first, in case it mutates in the meantime
this.scheduledMicroActions = [];
for (const microAction of microActions) {
for (const microAction of this.scheduledMicroActions) {
try {
microAction();
} catch (error) {