diff --git a/src/frontend/src/pages/StorePage/index.tsx b/src/frontend/src/pages/StorePage/index.tsx index a544d7a8b..db18dd833 100644 --- a/src/frontend/src/pages/StorePage/index.tsx +++ b/src/frontend/src/pages/StorePage/index.tsx @@ -29,7 +29,6 @@ import StoreApiKeyModal from "../../modals/StoreApiKeyModal"; import { storeComponent } from "../../types/store"; import { cn } from "../../utils/utils"; export default function StorePage(): JSX.Element { - const { id } = useParams(); const { validApiKey, setValidApiKey, hasApiKey, loadingApiKey } = useContext(StoreContext); const { apiKey } = useContext(AuthContext); @@ -37,6 +36,7 @@ export default function StorePage(): JSX.Element { const { setTabId } = useContext(FlowsContext); const [loading, setLoading] = useState(true); const [loadingTags, setLoadingTags] = useState(true); + const { id } = useParams(); const [filteredCategories, setFilterCategories] = useState([]); const [inputText, setInputText] = useState(""); const [searchData, setSearchData] = useState([]);