mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-23 16:36:54 +00:00
Make tag removal from URL case insensitive
This commit is contained in:
1 parent
875e1023fc
commit
995d1c63d8
1 file changed
+2
-2
@@ -151,10 +151,10 @@ const ListPage = createClass({
|
||||
|
||||
let filterTags = urlParams.getAll('tag');
|
||||
if(filterTag != '') {
|
||||
if(!filterTags.includes(filterTag)){
|
||||
if(filterTags.findIndex((tag)=>{return tag.toLowerCase()==filterTag.toLowerCase();}) == -1){
|
||||
filterTags.push(filterTag);
|
||||
} else {
|
||||
filterTags = filterTags.filter((tag)=>{ return tag != filterTag; });
|
||||
filterTags = filterTags.filter((tag)=>{ return tag.toLowerCase() != filterTag.toLowerCase(); });
|
||||
}
|
||||
}
|
||||
urlParams.delete('tag');
|
||||
|
||||
Reference in new issue
Block a user