@digital-ai/dot-components 3.8.0 → 3.8.1

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.
Files changed (2) hide show
  1. package/index.esm.js +6 -2
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -9333,8 +9333,12 @@ const DotMetadataApiProvider = ({
9333
9333
  setAccountIdHeader(accountId);
9334
9334
  return cancelablePromise(DashboardsService.postDashboardsService1(dashboardId, dashboard)).then(response => {
9335
9335
  setDashboardsError(null);
9336
- dashboards.push(response);
9337
- setDashboards(dashboards.slice());
9336
+ if (dashboards) {
9337
+ dashboards.push(response);
9338
+ setDashboards(dashboards.slice());
9339
+ } else {
9340
+ setDashboards([response]);
9341
+ }
9338
9342
  return response;
9339
9343
  }).catch(error => {
9340
9344
  setDashboardsError(error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital-ai/dot-components",
3
- "version": "3.8.0",
3
+ "version": "3.8.1",
4
4
  "private": false,
5
5
  "license": "SEE LICENSE IN <LICENSE.md>",
6
6
  "contributors": [