diff --git a/app/client/src/ce/sagas/SuperUserSagas.tsx b/app/client/src/ce/sagas/SuperUserSagas.tsx index ad907d313c..9df0ffadce 100644 --- a/app/client/src/ce/sagas/SuperUserSagas.tsx +++ b/app/client/src/ce/sagas/SuperUserSagas.tsx @@ -5,10 +5,7 @@ import { ReduxActionErrorTypes, ReduxActionTypes, } from "@appsmith/constants/ReduxActionConstants"; -import { - APPLICATIONS_URL, - WORKSPACE_SETTINGS_BILLING_PAGE_URL, -} from "constants/routes"; +import { APPLICATIONS_URL } from "constants/routes"; import type { User } from "constants/userConstants"; import { call, put, delay, select } from "redux-saga/effects"; import history from "utils/history"; @@ -150,7 +147,7 @@ export function* RestartServerPoll() { yield call(RestryRestartServerPoll); } -export function* RestryRestartServerPoll(isMigration = false) { +export function* RestryRestartServerPoll() { let pollCount = 0; const maxPollCount = RESTART_POLL_TIMEOUT / RESTART_POLL_INTERVAL; while (pollCount < maxPollCount) { @@ -165,8 +162,7 @@ export function* RestryRestartServerPoll(isMigration = false) { response.data?.tenantConfiguration?.migrationStatus === MIGRATION_STATUS.COMPLETED ) { - if (!isMigration) window.location.reload(); - else location.href = WORKSPACE_SETTINGS_BILLING_PAGE_URL; + window.location.reload(); } } catch (e) {} } diff --git a/app/client/src/constants/routes/baseRoutes.ts b/app/client/src/constants/routes/baseRoutes.ts index 583419d6db..4b0a059c63 100644 --- a/app/client/src/constants/routes/baseRoutes.ts +++ b/app/client/src/constants/routes/baseRoutes.ts @@ -28,7 +28,7 @@ export const WORKSPACE_INVITE_USERS_PAGE_URL = `${WORKSPACE_URL}/invite`; export const WORKSPACE_SETTINGS_PAGE_URL = `${WORKSPACE_URL}/settings`; export const WORKSPACE_SETTINGS_GENERAL_PAGE_URL = `${WORKSPACE_URL}/settings/general`; export const WORKSPACE_SETTINGS_MEMBERS_PAGE_URL = `${WORKSPACE_URL}/settings/members`; -export const WORKSPACE_SETTINGS_BILLING_PAGE_URL = `/settings/billing`; +export const WORKSPACE_SETTINGS_LICENSE_PAGE_URL = `/settings/license`; export const matchApplicationPath = match(APPLICATIONS_URL); export const matchTemplatesPath = match(TEMPLATES_PATH);