From f0551f50d1fe14b445cdd46808fd1e998e03cdf7 Mon Sep 17 00:00:00 2001 From: cameronapak Date: Tue, 22 Jul 2025 08:36:38 -0500 Subject: [PATCH] fix: set default admin_basepath and logo_return_path in constructor Move default option values into the constructor parameter initializer to prevent them from being overwritten by the spread operator in `get options()`. --- app/src/ui/client/utils/AppReduced.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/ui/client/utils/AppReduced.ts b/app/src/ui/client/utils/AppReduced.ts index f7eb603..66561c9 100644 --- a/app/src/ui/client/utils/AppReduced.ts +++ b/app/src/ui/client/utils/AppReduced.ts @@ -35,7 +35,10 @@ export class AppReduced { constructor( protected appJson: AppType, - protected _options: BkndAdminOptions = {}, + protected _options: BkndAdminOptions = { + admin_basepath: '', + logo_return_path: '/' + }, ) { //console.log("received appjson", appJson); @@ -85,7 +88,6 @@ export class AppReduced { get options() { return { - admin_basepath: "", logo_return_path: "/", ...this._options, };