Skip to content

Commit 845225b

Browse files
committed
navigate on click
1 parent 1b4c7ac commit 845225b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/postgres-new/components/sidebar.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,7 @@ type ConnectMenuItemProps = {
544544

545545
function LiveShareMenuItem(props: ConnectMenuItemProps) {
546546
const { liveShare, user } = useApp()
547+
const router = useRouter()
547548

548549
if (liveShare.isLiveSharing && liveShare.databaseId === props.databaseId) {
549550
return (
@@ -571,6 +572,7 @@ function LiveShareMenuItem(props: ConnectMenuItemProps) {
571572
liveShare.stop()
572573
}
573574
liveShare.start(props.databaseId)
575+
router.push(`/db/${props.databaseId}`)
574576
props.setIsPopoverOpen(false)
575577
}}
576578
>

0 commit comments

Comments
 (0)