@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.
- package/index.esm.js +6 -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
|
|
9337
|
-
|
|
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);
|