Skip to content

Commit

Permalink
Fix: dashboard share modal not closing (#24953)
Browse files Browse the repository at this point in the history
Co-authored-by: Sandy Spicer <[email protected]>
  • Loading branch information
abhi12299 and aspicer authored Sep 16, 2024
1 parent ac44668 commit cdd529c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/scenes/dashboard/dashboardLogic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,7 @@ export const dashboardLogic = kea<dashboardLogicType>([
},
})),

urlToAction(({ actions }) => ({
urlToAction(({ values, actions }) => ({
'/dashboard/:id/subscriptions(/:subscriptionId)': ({ subscriptionId }) => {
const id = subscriptionId
? subscriptionId == 'new'
Expand All @@ -1322,6 +1322,9 @@ export const dashboardLogic = kea<dashboardLogicType>([
'/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)
Expand Down

0 comments on commit cdd529c

Please sign in to comment.