Commit bf93685d authored by Thomas Greiner's avatar Thomas Greiner

Issue 7306 - Fixed: Filter error message referred to wrong filter

parent 27998f3d
Pipeline #48386168 passed with stages
in 8 minutes and 8 seconds
......@@ -172,9 +172,7 @@ class IOFilterTable extends IOElement
onFilterAdd(event)
{
const filters = event.detail
.split(/(?:\r\n|\n)/)
.reverse();
const filters = event.detail.split(/(?:\r\n|\n)/);
browser.runtime.sendMessage({
type: "filters.importRaw",
......@@ -185,6 +183,7 @@ class IOFilterTable extends IOElement
if (!errors.length)
{
cleanErrors.call(this);
filters.reverse();
for (const text of filters)
{
const i = this.filters.findIndex(flt => flt.text === text);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment