fix(dashboard): Native filter on the dashboard with multiple tabs is displayed as out of scope (#20693)

This commit is contained in:
Diego Medina 2022-07-13 05:03:23 -03:00 committed by GitHub
parent 19247cc92a
commit effa7d9f58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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) {