mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-13 07:23:39 +08:00
Fixed preset removal bug
This commit is contained in:
parent
5eea5526c4
commit
9f6a2b8d94
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ function apply() {
|
|||
let status = e.data.resultCode;
|
||||
if (status === 1) {
|
||||
Notifications.add("Preset removed", 1);
|
||||
DB.getSnapshot().preset.forEach((preset, index) => {
|
||||
DB.getSnapshot().presets.forEach((preset, index) => {
|
||||
if (preset.id === presetid) {
|
||||
DB.getSnapshot().preset.splice(index, 1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue