1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

Merge pull request #437 from Unleash/fix/featureView-tab

make Overview tab the default tab when open a feature
This commit is contained in:
Youssef Khedher 2021-10-15 09:03:10 +01:00 committed by GitHub
commit c3453fad0d

View File

@ -1,5 +1,5 @@
export const getTogglePath = (projectId: string, featureToggleName: string, newPath: boolean) => {
return `/projects/${projectId}/features${newPath ? '2' : ''}/${featureToggleName}/strategies`;
return `/projects/${projectId}/features${newPath ? `2/${featureToggleName}` : `/${featureToggleName}/strategies`}`;
};
export const getToggleCopyPath = (