fixed remove filter tag issue

This commit is contained in:
Anton Tranelis 2024-07-31 21:51:30 +02:00
parent 3372b30c57
commit 6e0775e1a2

View File

@ -156,7 +156,7 @@ function useFilterManager(initialTags: Tag[]): {
if(tags?.length==0 && urlTags?.length && urlTags?.length > 0) tags[0]=urlTags;
tags?.map(urlTag => {
if(!(urlTag.toLocaleLowerCase() === name.toLocaleLowerCase()))
newUrlTags = newUrlTags + `${newUrlTags===""? urlTag : `,${urlTag}`}`
newUrlTags = newUrlTags + `${newUrlTags===""? urlTag : `;${urlTag}`}`
});
if(newUrlTags !== "") {
params.set("tags", `${newUrlTags}`)