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()`.
This commit is contained in:
cameronapak
2025-07-22 08:36:38 -05:00
parent 03aac3437b
commit f0551f50d1

View File

@@ -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,
};