diff --git a/dev/Sieve/View/Script.js b/dev/Sieve/View/Script.js index 5914e5521..0cda4e705 100644 --- a/dev/Sieve/View/Script.js +++ b/dev/Sieve/View/Script.js @@ -110,15 +110,7 @@ export class SieveScriptPopupView extends rl.pluginPopupView { const clonedFilter = filter.assignTo(); FilterPopupView.showModal([ clonedFilter, - () => { - const script = this.script(), - filters = script.filters(), - index = filters.indexOf(filter); - if (-1 < index) { - clonedFilter.assignTo(filter); - script.filters(filters); - } - }, + () => clonedFilter.assignTo(filter), true ]); }