@bindu-dashing/dam-solution-v2 5.8.203 → 5.8.205
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,11 +5,13 @@ import { ThemeModes } from "../utilities/constants/interface";
|
|
|
5
5
|
import CreateClient from "./CreateClientBtn";
|
|
6
6
|
import ToastProvider from "../hocs/ToastProvider";
|
|
7
7
|
function App(props) {
|
|
8
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
9
|
+
// Use existingClientData as fallback so login API gets token for keys/refresh APIs
|
|
8
10
|
const config = {
|
|
9
|
-
damAccessKey: props === null || props === void 0 ? void 0 : props.accessKey,
|
|
10
|
-
secretKey: props === null || props === void 0 ? void 0 : props.secretKey,
|
|
11
|
-
subdomain: props === null || props === void 0 ? void 0 : props.subdomain,
|
|
12
|
-
teamIds: props === null || props === void 0 ? void 0 : props.teamIds,
|
|
11
|
+
damAccessKey: (_a = props === null || props === void 0 ? void 0 : props.accessKey) !== null && _a !== void 0 ? _a : (_b = props === null || props === void 0 ? void 0 : props.existingClientData) === null || _b === void 0 ? void 0 : _b.accessKey,
|
|
12
|
+
secretKey: (_c = props === null || props === void 0 ? void 0 : props.secretKey) !== null && _c !== void 0 ? _c : (_d = props === null || props === void 0 ? void 0 : props.existingClientData) === null || _d === void 0 ? void 0 : _d.secretKey,
|
|
13
|
+
subdomain: (_g = (_e = props === null || props === void 0 ? void 0 : props.subdomain) !== null && _e !== void 0 ? _e : (_f = props === null || props === void 0 ? void 0 : props.existingClientData) === null || _f === void 0 ? void 0 : _f.subdomain) !== null && _g !== void 0 ? _g : props === null || props === void 0 ? void 0 : props.clientSubdomain,
|
|
14
|
+
teamIds: (_h = props === null || props === void 0 ? void 0 : props.teamIds) !== null && _h !== void 0 ? _h : (((_j = props === null || props === void 0 ? void 0 : props.existingClientData) === null || _j === void 0 ? void 0 : _j.brandId) ? [props.existingClientData.brandId] : []),
|
|
13
15
|
styles: props === null || props === void 0 ? void 0 : props.styles,
|
|
14
16
|
appType: props === null || props === void 0 ? void 0 : props.appType,
|
|
15
17
|
};
|