mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-30 14:00:07 +02:00
Fix ungrouped undo-redo
This commit is contained in:
parent
a335ad18ff
commit
ba052ac305
@ -137,6 +137,7 @@ class UndoManager {
|
||||
} while (this.index >= 0 && currentGroupId === command.groupId)
|
||||
} else {
|
||||
await this.execute(command, 'undo')
|
||||
this.index -= 1
|
||||
}
|
||||
|
||||
if (this.onStateDidChange) {
|
||||
@ -165,6 +166,7 @@ class UndoManager {
|
||||
} while (this.index < this.commands.length - 1 && currentGroupId === command.groupId)
|
||||
} else {
|
||||
await this.execute(command, 'redo')
|
||||
this.index += 1
|
||||
}
|
||||
|
||||
if (this.onStateDidChange) {
|
||||
|
Loading…
Reference in New Issue
Block a user