1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-04-10 01:16:39 +02:00

fix route rendering

This commit is contained in:
Youssef 2021-10-15 08:39:37 +01:00
parent 9ddd859037
commit 11740e718b

View File

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