diff --git a/src/modules/documentExecution/dashboard/DashboardHelpers.ts b/src/modules/documentExecution/dashboard/DashboardHelpers.ts index 63b8773b6..b081acb6e 100644 --- a/src/modules/documentExecution/dashboard/DashboardHelpers.ts +++ b/src/modules/documentExecution/dashboard/DashboardHelpers.ts @@ -109,7 +109,7 @@ const updateWidgetCoordinatesIfOverlaping = (widgetToAdd: IWidgetSheetItem, maxW export const cloneWidgetInSheet = (widget: IWidget, dashboard: IDashboard, selectedSheet: IDashboardSheet) => { const clonedWidget = deepcopy(widget) - clonedWidget.id = cryptoRandomString({ length: 16, type: 'base64' }) + clonedWidget.id = crypto.randomUUID() recreateKnowageChartModel(clonedWidget) const originalWidgetSheetItem = findOriginalWidgetInSheet(widget, selectedSheet) const clonedWidgetSheetItem = createDashboardSheetWidgetItem(clonedWidget)