diff --git a/apps/sim/app/workspace/[workspaceId]/home/home.tsx b/apps/sim/app/workspace/[workspaceId]/home/home.tsx index c0c9f454cc0..64e60027577 100644 --- a/apps/sim/app/workspace/[workspaceId]/home/home.tsx +++ b/apps/sim/app/workspace/[workspaceId]/home/home.tsx @@ -188,8 +188,12 @@ export function Home({ chatId }: HomeProps = {}) { [editQueuedMessage] ) + const hasSetResourceRef = useRef(false) useEffect(() => { + if (!activeResourceId && !hasSetResourceRef.current) return + hasSetResourceRef.current = true const url = new URL(window.location.href) + url.hash = '' if (activeResourceId) { url.searchParams.set('resource', activeResourceId) } else {