From 2cbc55133fd85e91c48aca67beed25a6eafb3447 Mon Sep 17 00:00:00 2001 From: Qortal Seth Date: Mon, 12 May 2025 10:41:01 -0600 Subject: [PATCH] Bugfix on IndexButton.tsx --- src/components/common/ContentButtons/IndexButton.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/common/ContentButtons/IndexButton.tsx b/src/components/common/ContentButtons/IndexButton.tsx index 01433eb..269fbcb 100644 --- a/src/components/common/ContentButtons/IndexButton.tsx +++ b/src/components/common/ContentButtons/IndexButton.tsx @@ -2,6 +2,7 @@ import SavedSearchIcon from "@mui/icons-material/SavedSearch"; import { IconButton, Tooltip } from "@mui/material"; import { createQortalLink, IndexCategory, useGlobal } from "qapp-core"; import { CustomTooltip } from "./CustomTooltip.tsx"; +import { useLocation } from "react-router-dom"; export interface IndexButtonProps { channelName: string; @@ -9,6 +10,7 @@ export interface IndexButtonProps { export const IndexButton = ({ channelName }: IndexButtonProps) => { const openPageIndexManager = useGlobal().indexOperations.openPageIndexManager; + const location = useLocation(); return (