From bc1e1fad85e2033bb17e8f2002dcf32734b53655 Mon Sep 17 00:00:00 2001 From: Alex Tran Date: Mon, 16 Dec 2024 08:52:29 -0600 Subject: [PATCH] chore: enum name --- web/src/lib/constants.ts | 2 +- web/src/routes/(user)/people/+page.svelte | 2 +- .../[personId]/[[photos=photos]]/[[assetId=id]]/+page.svelte | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/lib/constants.ts b/web/src/lib/constants.ts index 11c8551a88..4f6730912a 100644 --- a/web/src/lib/constants.ts +++ b/web/src/lib/constants.ts @@ -72,7 +72,7 @@ export const dateFormats = { export enum QueryParameter { ACTION = 'action', - AFTER_MERGE_ROUTE = 'afterMergeRoute', + NEXT_ROUTE = 'nextRoute', ID = 'id', IS_OPEN = 'isOpen', ONBOARDING_STEP = 'step', diff --git a/web/src/routes/(user)/people/+page.svelte b/web/src/routes/(user)/people/+page.svelte index 4b03e0645d..0794d8b51d 100644 --- a/web/src/routes/(user)/people/+page.svelte +++ b/web/src/routes/(user)/people/+page.svelte @@ -227,7 +227,7 @@ const url = new URL(`${AppRoute.PEOPLE}/${detail.id}`, window.location.href); url.searchParams.append(QueryParameter.ACTION, ActionQueryParameterValue.MERGE); url.searchParams.append(QueryParameter.PREVIOUS_ROUTE, AppRoute.PEOPLE); - url.searchParams.append(QueryParameter.AFTER_MERGE_ROUTE, AppRoute.PEOPLE); + url.searchParams.append(QueryParameter.NEXT_ROUTE, AppRoute.PEOPLE); await goto(url); }; diff --git a/web/src/routes/(user)/people/[personId]/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/people/[personId]/[[photos=photos]]/[[assetId=id]]/+page.svelte index 64eb84b8a5..1e6ec5a0b8 100644 --- a/web/src/routes/(user)/people/[personId]/[[photos=photos]]/[[assetId=id]]/+page.svelte +++ b/web/src/routes/(user)/people/[personId]/[[photos=photos]]/[[assetId=id]]/+page.svelte @@ -109,7 +109,7 @@ previousRoute = getPreviousRoute; } - const getAfterMergeRoute = $page.url.searchParams.get(QueryParameter.AFTER_MERGE_ROUTE); + const getAfterMergeRoute = $page.url.searchParams.get(QueryParameter.NEXT_ROUTE); if (getAfterMergeRoute && !isExternalUrl(getAfterMergeRoute)) { afterMergeRoute = getAfterMergeRoute; }