We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b4c7ac commit 845225bCopy full SHA for 845225b
apps/postgres-new/components/sidebar.tsx
@@ -544,6 +544,7 @@ type ConnectMenuItemProps = {
544
545
function LiveShareMenuItem(props: ConnectMenuItemProps) {
546
const { liveShare, user } = useApp()
547
+ const router = useRouter()
548
549
if (liveShare.isLiveSharing && liveShare.databaseId === props.databaseId) {
550
return (
@@ -571,6 +572,7 @@ function LiveShareMenuItem(props: ConnectMenuItemProps) {
571
572
liveShare.stop()
573
}
574
liveShare.start(props.databaseId)
575
+ router.push(`/db/${props.databaseId}`)
576
props.setIsPopoverOpen(false)
577
}}
578
>
0 commit comments