@bindu-dashing/dam-solution-v2 5.8.164 → 5.8.165
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.
|
@@ -184,7 +184,11 @@ const CreateClientForm = ({ teamsApi, username, password, toggleShow, onSuccess,
|
|
|
184
184
|
const finalTeamsApi = teamsApiDetailsFromData.teamsApi || teamsApi;
|
|
185
185
|
const finalUsername = teamsApiDetailsFromData.username || username;
|
|
186
186
|
const finalPassword = teamsApiDetailsFromData.password || password;
|
|
187
|
-
|
|
187
|
+
// Convert adminTeams to strings for API (API expects strings like ["547"] not numbers like [547])
|
|
188
|
+
const adminTeamsAsStrings = Array.isArray(data.adminTeams)
|
|
189
|
+
? data.adminTeams.map((team) => String(team))
|
|
190
|
+
: [];
|
|
191
|
+
const values = Object.assign(Object.assign({}, data), { adminTeams: adminTeamsAsStrings, showFilePreview: (_a = data.showFilePreview) !== null && _a !== void 0 ? _a : false, accessKey: appType == "reactJs"
|
|
188
192
|
? process.env.REACT_APP_MIXDRIVE_CLIENT_PARENT_ACCESS_KEY
|
|
189
193
|
: process.env.NEXT_PUBLIC_MIXDRIVE_CLIENT_PARENT_ACCESS_KEY, secretKey: appType == "reactJs"
|
|
190
194
|
? process.env.REACT_APP_MIXDRIVE_CLIENT_PARENT_SECRET_KEY
|