Fixed preset removal bug

This commit is contained in:
Estebene 2021-05-09 12:14:44 +12:00
parent 5eea5526c4
commit 9f6a2b8d94

View file

@ -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);
}