diff --git a/src/gui/Pages/AccountSettings/Notifications.qml b/src/gui/Pages/AccountSettings/Notifications.qml index c99195b1..fe6e85bf 100644 --- a/src/gui/Pages/AccountSettings/Notifications.qml +++ b/src/gui/Pages/AccountSettings/Notifications.qml @@ -28,6 +28,8 @@ HListView { const args = [] for (const [modelId, kwargs] of Object.entries(pendingEdits)) { + if (! model.find(modelId)) continue // pushrule was deleted + const [kind, rule_id] = JSON.parse(modelId) args.push(Object.assign({}, {kind, rule_id}, kwargs)) }