bugfixing options flow rule of list

This commit is contained in:
MuslemRahimi 2024-09-23 19:22:49 +02:00
parent 2f05c5ee67
commit b042d880b3

View File

@ -85,6 +85,7 @@ async function handleDeleteRule(state) {
ruleOfList = [...ruleOfList] ruleOfList = [...ruleOfList]
break; // Exit the loop after deleting the element break; // Exit the loop after deleting the element
} }
} }
if(ruleOfList?.length === 0) if(ruleOfList?.length === 0)
@ -98,6 +99,7 @@ async function handleDeleteRule(state) {
displayRules = allRows?.filter(row => ruleOfList.some(rule => rule.name === row.rule)); displayRules = allRows?.filter(row => ruleOfList.some(rule => rule.name === row.rule));
shouldLoadWorker.set(true); shouldLoadWorker.set(true);
await saveCookieRuleOfList()
} }
@ -1238,7 +1240,7 @@ $: {
let:index let:index
let:style let:style
{style} {style}
class="tr {index % 2 === 0 ? 'bg-[#27272A]' : 'bg-[#09090B]'}" class="tr cursor-pointer {index % 2 === 0 ? 'bg-[#27272A]' : 'bg-[#09090B]'}"
> >
<!-- Row data --> <!-- Row data -->