@digital-ai/dot-components 3.8.0 → 3.8.2

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 +7 -3
  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);
@@ -10591,7 +10595,7 @@ function DotDashboardActions({
10591
10595
  onClose: handlePublishConfirmClose,
10592
10596
  onStatusChanged: handlePublishConfirm
10593
10597
  }), categories && dashboardToCopy && jsx(DotDashboardDialog, {
10594
- title: "Create dashboard",
10598
+ title: "Duplicate dashboard",
10595
10599
  availableCategories: categories === null || categories === void 0 ? void 0 : categories.categories[dashboard.target_apps[0]],
10596
10600
  copyDashboard: dashboardToCopy,
10597
10601
  open: true,
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.2",
4
4
  "private": false,
5
5
  "license": "SEE LICENSE IN <LICENSE.md>",
6
6
  "contributors": [