Skip to content

Commit

Permalink
fix(dashboard): Native filter on the dashboard with multiple tabs is …
Browse files Browse the repository at this point in the history
…displayed as out of scope (#20693)
  • Loading branch information
diegomedina248 committed Jul 13, 2022
1 parent 19247cc commit effa7d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion superset-frontend/src/dashboard/containers/DashboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ export const DashboardPage: FC<PageProps> = ({ idOrSlug }: PageProps) => {
const isOldRison = getUrlParam(URL_PARAMS.nativeFilters);

let dataMask = nativeFilterKeyValue || {};
let activeTabs: string[] | undefined = [];
// activeTabs is initialized with undefined so that it doesn't override
// the currently stored value when hydrating
let activeTabs: string[] | undefined;
if (permalinkKey) {
const permalinkValue = await getPermalinkValue(permalinkKey);
if (permalinkValue) {
Expand Down

0 comments on commit effa7d9

Please sign in to comment.