Skip to content

Commit 2164cef

Browse files
TheodoreSpeaksTheodore Li
andauthored
fix(mothership): fix url keeping markdown hash on resource switch (#3979)
Co-authored-by: Theodore Li <theo@sim.ai>
1 parent 58571fe commit 2164cef

File tree

1 file changed

+1
-0
lines changed
  • apps/sim/app/workspace/[workspaceId]/home

1 file changed

+1
-0
lines changed

apps/sim/app/workspace/[workspaceId]/home/home.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ export function Home({ chatId }: HomeProps = {}) {
195195
} else {
196196
url.searchParams.delete('resource')
197197
}
198+
url.hash = ''
198199
window.history.replaceState(null, '', url.toString())
199200
}, [activeResourceId])
200201

0 commit comments

Comments
 (0)