1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01: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) => {
return `/projects/${projectId}/features${newPath ? '2' : ''}/${featureToggleName}`;
return `/projects/${projectId}/features${newPath ? `2/${featureToggleName}` : `/${featureToggleName}/strategies`}`;
};
export const getToggleCopyPath = (