-
- Downloads
refactor `useDashboardTabs` and `useSyncURLSlug` to not nullify `selectedTabId` on unmount (#32150)
* refactor `useDashboardTabs` and `useSyncURLSlug` to not nullify `selectedTabId` on unmount * remove unused code * fix slug not updating in edit mode * add unit test case
Showing
- e2e/test/scenarios/sharing/public-dashboard.cy.spec.js 4 additions, 0 deletionse2e/test/scenarios/sharing/public-dashboard.cy.spec.js
- frontend/src/metabase/dashboard/components/DashboardTabs/DashboardTabs.unit.spec.tsx 34 additions, 3 deletions...oard/components/DashboardTabs/DashboardTabs.unit.spec.tsx
- frontend/src/metabase/dashboard/components/DashboardTabs/use-dashboard-tabs.ts 1 addition, 2 deletions.../dashboard/components/DashboardTabs/use-dashboard-tabs.ts
- frontend/src/metabase/dashboard/components/DashboardTabs/use-sync-url-slug.ts 17 additions, 10 deletions...e/dashboard/components/DashboardTabs/use-sync-url-slug.ts
Please register or sign in to comment