Ignore changes for now deleted push rules on save

This commit is contained in:
miruka 2020-11-01 01:48:28 -04:00
parent 9473e97c61
commit d2fc003617

View File

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