From 844e7127af8f2a88fa1832fed21b746ca183f6b4 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Thu, 16 Nov 2023 22:32:02 -0300 Subject: [PATCH] Added api key as dependency --- src/frontend/src/pages/StorePage/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontend/src/pages/StorePage/index.tsx b/src/frontend/src/pages/StorePage/index.tsx index 6b4421553..7d77fcb9a 100644 --- a/src/frontend/src/pages/StorePage/index.tsx +++ b/src/frontend/src/pages/StorePage/index.tsx @@ -17,6 +17,7 @@ import { SelectValue, } from "../../components/ui/select"; import { alertContext } from "../../contexts/alertContext"; +import { AuthContext } from "../../contexts/authContext"; import { StoreContext } from "../../contexts/storeContext"; import { getStoreComponents, getStoreTags } from "../../controllers/API"; import StoreApiKeyModal from "../../modals/StoreApiKeyModal"; @@ -25,6 +26,7 @@ import { cn } from "../../utils/utils"; export default function StorePage(): JSX.Element { const { validApiKey, setValidApiKey, hasApiKey, loadingApiKey } = useContext(StoreContext); + const { apiKey } = useContext(AuthContext); const { setErrorData } = useContext(alertContext); const [loading, setLoading] = useState(true); const [loadingTags, setLoadingTags] = useState(true); @@ -75,6 +77,7 @@ export default function StorePage(): JSX.Element { selectFilter, validApiKey, hasApiKey, + apiKey, ]); function handleGetTags() {