Skip to content

Commit

Permalink
PMM-13180 Replace match with includes
Browse files Browse the repository at this point in the history
  • Loading branch information
matejkubinec committed Jun 20, 2024
1 parent 787ecf1 commit 100dfb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/app/percona/shared/helpers/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const useLinkWithVariables = (url?: string) => {
}
};

const isDashboardUrl = (url?: string) => url?.match('/d/');
const isDashboardUrl = (url?: string) => url?.includes('/d/');

const checkDbType = (url: string): boolean => {
const currentDB = window.location.pathname?.split('/')[3]?.split('-')[0];
Expand Down

0 comments on commit 100dfb4

Please sign in to comment.