diff --git a/frontend/src/scenes/dashboard/dashboardLogic.tsx b/frontend/src/scenes/dashboard/dashboardLogic.tsx index b6eaf5c26dccb..9f9a15cca99ac 100644 --- a/frontend/src/scenes/dashboard/dashboardLogic.tsx +++ b/frontend/src/scenes/dashboard/dashboardLogic.tsx @@ -1307,7 +1307,7 @@ export const dashboardLogic = kea([ }, })), - urlToAction(({ actions }) => ({ + urlToAction(({ values, actions }) => ({ '/dashboard/:id/subscriptions(/:subscriptionId)': ({ subscriptionId }) => { const id = subscriptionId ? subscriptionId == 'new' @@ -1322,6 +1322,9 @@ export const dashboardLogic = kea([ '/dashboard/:id': () => { actions.setSubscriptionMode(false, undefined) actions.setTextTileId(null) + if (values.dashboardMode === DashboardMode.Sharing) { + actions.setDashboardMode(null, null) + } }, '/dashboard/:id/sharing': () => { actions.setSubscriptionMode(false, undefined)