diff --git a/src/Components/AppShell/SideBar.tsx b/src/Components/AppShell/SideBar.tsx
index 3448ad0a..d4509e0a 100644
--- a/src/Components/AppShell/SideBar.tsx
+++ b/src/Components/AppShell/SideBar.tsx
@@ -83,7 +83,7 @@ export function SideBar ({ routes, bottomRoutes }: { routes: route[], bottomRout
}}>
{route.icon}{route.name}
{
- location.pathname.includes(route.path) && route.path.length > 1 || location.pathname === route.path
+ (location.pathname.includes(route.path) && route.path.length > 1) || location.pathname === route.path
? ()
: null
@@ -117,7 +117,7 @@ export function SideBar ({ routes, bottomRoutes }: { routes: route[], bottomRout
}}>
{route.icon}{route.name}
{
- location.pathname.includes(route.path) && route.path.length > 1 || location.pathname === route.path
+ (location.pathname.includes(route.path) && route.path.length > 1) || location.pathname === route.path
? ()
: null
diff --git a/src/Components/Map/Layer.tsx b/src/Components/Map/Layer.tsx
index f300a06e..1f0deaf7 100644
--- a/src/Components/Map/Layer.tsx
+++ b/src/Components/Map/Layer.tsx
@@ -155,7 +155,7 @@ export const Layer = ({
?.filter(item =>
filterTags.length === 0 ? item : filterTags.some(tag => getItemTags(item).some(filterTag => filterTag.name.toLocaleLowerCase() === tag.name.toLocaleLowerCase())))
?.filter(item => item.layer && isLayerVisible(item.layer))
- .filter(item => item.group_type && isGroupTypeVisible(item.group_type) || visibleGroupTypes.length === 0)
+ .filter(item => (item.group_type && isGroupTypeVisible(item.group_type)) || visibleGroupTypes.length === 0)
.map((item: Item) => {
if (getValue(item, itemLongitudeField) && getValue(item, itemLatitudeField)) {
if (getValue(item, itemTextField)) item[itemTextField] = getValue(item, itemTextField)
diff --git a/src/Components/Map/Subcomponents/Controls/SearchControl.tsx b/src/Components/Map/Subcomponents/Controls/SearchControl.tsx
index 3041e528..73be8e7b 100644
--- a/src/Components/Map/Subcomponents/Controls/SearchControl.tsx
+++ b/src/Components/Map/Subcomponents/Controls/SearchControl.tsx
@@ -60,7 +60,7 @@ export const SearchControl = () => {
setItemsResults(items.filter(item => {
if (item.layer?.itemNameField) item.name = getValue(item, item.layer.itemNameField)
if (item.layer?.itemTextField) item.text = getValue(item, item.layer.itemTextField)
- return value.length > 2 && ((item.layer?.listed && item.name?.toLowerCase().includes(value.toLowerCase()) || item.text?.toLowerCase().includes(value.toLowerCase())))
+ return value.length > 2 && (((item.layer?.listed && item.name?.toLowerCase().includes(value.toLowerCase())) || item.text?.toLowerCase().includes(value.toLowerCase())))
}))
let phrase = value
if (value.startsWith('#')) phrase = value.substring(1)
@@ -101,7 +101,7 @@ export const SearchControl = () => {