From f96aafc0249ba3530508656060ece502eb1d0982 Mon Sep 17 00:00:00 2001 From: Shaun Struwig <41984034+Blargian@users.noreply.github.com> Date: Wed, 22 Oct 2025 18:05:41 +0200 Subject: [PATCH] fix url for static fallback file --- src/components/IntegrationGrid/IntegrationGrid.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/IntegrationGrid/IntegrationGrid.tsx b/src/components/IntegrationGrid/IntegrationGrid.tsx index 4ccc5de91bc..577a8706984 100644 --- a/src/components/IntegrationGrid/IntegrationGrid.tsx +++ b/src/components/IntegrationGrid/IntegrationGrid.tsx @@ -159,12 +159,13 @@ function useCMSIntegrations() { const [integrations, setIntegrations] = useState([]); const [loading, setLoading] = useState(true); const [error, setError] = useState(null); + const fallbackPath = useBaseUrl('/integrations-fallback.json'); useEffect(() => { const fetchIntegrations = async () => { // Step 1: Load fallback data first for immediate display try { - const fallbackResponse = await fetch('/integrations-fallback.json', { + const fallbackResponse = await fetch(fallbackPath, { cache: 'force-cache' // Use cached version if available }); @@ -235,7 +236,7 @@ function useCMSIntegrations() { }; fetchIntegrations(); - }, []); + }, [fallbackPath]); return { integrations, loading, error }; }