authscape 1.0.338 → 1.0.340

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.
package/index.js CHANGED
@@ -2366,6 +2366,9 @@ function OEMEditor(_ref) {
2366
2366
  _response = _context2.sent;
2367
2367
  if (_response != null && _response.status == 200) {
2368
2368
  setOEMDomainList(_response.data);
2369
+ if (_response.data.length > 0) {
2370
+ setOEMDomain(_response.data[0].name);
2371
+ }
2369
2372
  }
2370
2373
  _context2.next = 17;
2371
2374
  break;
@@ -2469,11 +2472,11 @@ function OEMEditor(_ref) {
2469
2472
  }, selectedFont != null && fontUri == null && /*#__PURE__*/_react["default"].createElement("link", {
2470
2473
  href: "https://fonts.googleapis.com/css2?family=" + selectedFont,
2471
2474
  rel: "stylesheet"
2472
- }), oEMDomain != null && /*#__PURE__*/_react["default"].createElement(_Box["default"], {
2475
+ }), /*#__PURE__*/_react["default"].createElement(_Box["default"], {
2473
2476
  sx: {
2474
2477
  paddingTop: 6
2475
2478
  }
2476
- }, /*#__PURE__*/_react["default"].createElement(_FormControl["default"], {
2479
+ }, oEMDomain != null && /*#__PURE__*/_react["default"].createElement(_FormControl["default"], {
2477
2480
  fullWidth: true
2478
2481
  }, /*#__PURE__*/_react["default"].createElement(_InputLabel["default"], {
2479
2482
  id: "demo-simple-select-label"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authscape",
3
- "version": "1.0.338",
3
+ "version": "1.0.340",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -94,6 +94,11 @@ export function OEMEditor({loadedUser, notification, showAllDomains = false, com
94
94
  if (response != null && response.status == 200)
95
95
  {
96
96
  setOEMDomainList(response.data);
97
+
98
+ if (response.data.length > 0)
99
+ {
100
+ setOEMDomain(response.data[0].name);
101
+ }
97
102
  }
98
103
  }
99
104
  else
@@ -183,8 +188,8 @@ export function OEMEditor({loadedUser, notification, showAllDomains = false, com
183
188
  <link href={"https://fonts.googleapis.com/css2?family=" + selectedFont} rel="stylesheet"></link>
184
189
  }
185
190
 
186
- {oEMDomain != null &&
187
191
  <Box sx={{paddingTop:6}}>
192
+ {oEMDomain != null &&
188
193
  <FormControl fullWidth>
189
194
  <InputLabel id="demo-simple-select-label">Website Domain</InputLabel>
190
195
  <Select
@@ -202,8 +207,8 @@ export function OEMEditor({loadedUser, notification, showAllDomains = false, com
202
207
  })}
203
208
  </Select>
204
209
  </FormControl>
210
+ }
205
211
  </Box>
206
- }
207
212
 
208
213
  <Box sx={{ borderBottom: 1, borderColor: 'divider', paddingTop:2 }}>
209
214
  <Tabs value={value} onChange={handleChange} aria-label="basic tabs example">