If label is empty, reset the correction state (to allow template deletion)

This commit is contained in:
nemunaire 2022-03-04 10:57:16 +01:00
parent 1e56799f67
commit ff5f14fd76

View File

@ -40,9 +40,9 @@
const my_correction = { };
for (const tpl of templates) {
if (!tpl.regexp) continue;
if (!tpl.regexp && tpl.label) continue;
if (r.value.match(tpl.regexp)) {
if (tpl.regexp && r.value.match(tpl.regexp)) {
my_correction[tpl.id] = true;
} else {
my_correction[tpl.id] = false;