We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7971a64 commit c8c2b0dCopy full SHA for c8c2b0d
apps/sim/app/workspace/[workspaceId]/home/home.tsx
@@ -188,8 +188,12 @@ export function Home({ chatId }: HomeProps = {}) {
188
[editQueuedMessage]
189
)
190
191
+ const hasSetResourceRef = useRef(false)
192
useEffect(() => {
193
+ if (!activeResourceId && !hasSetResourceRef.current) return
194
+ hasSetResourceRef.current = true
195
const url = new URL(window.location.href)
196
+ url.hash = ''
197
if (activeResourceId) {
198
url.searchParams.set('resource', activeResourceId)
199
} else {
0 commit comments