diff --git a/src/ROUTES.ts b/src/ROUTES.ts index b8ebefadc40e..ed498c474099 100644 --- a/src/ROUTES.ts +++ b/src/ROUTES.ts @@ -1850,10 +1850,14 @@ const ROUTES = { }, WORKSPACE_OWNER_CHANGE_SUCCESS: { route: 'workspaces/:policyID/change-owner/:accountID/success', + + // eslint-disable-next-line no-restricted-syntax -- Legacy route generation getRoute: (policyID: string, accountID: number, backTo?: string) => getUrlWithBackToParam(`workspaces/${policyID}/change-owner/${accountID}/success` as const, backTo), }, WORKSPACE_OWNER_CHANGE_ERROR: { route: 'workspaces/:policyID/change-owner/:accountID/failure', + + // eslint-disable-next-line no-restricted-syntax -- Legacy route generation getRoute: (policyID: string, accountID: number, backTo?: string) => getUrlWithBackToParam(`workspaces/${policyID}/change-owner/${accountID}/failure` as const, backTo), }, WORKSPACE_OWNER_CHANGE_CHECK: { @@ -1862,6 +1866,8 @@ const ROUTES = { if (!policyID) { Log.warn('Invalid policyID is used to build the WORKSPACE_OWNER_CHANGE_CHECK route'); } + + // eslint-disable-next-line no-restricted-syntax -- Legacy route generation return getUrlWithBackToParam(`workspaces/${policyID}/change-owner/${accountID}/${error as string}` as const, backTo); }, },