From fb81e773ee7ce88823151548e77ac4905582da40 Mon Sep 17 00:00:00 2001 From: Davide Vernassa Date: Tue, 7 Jan 2025 15:41:39 +0100 Subject: [PATCH] Fixed dashboard widget cloning by removing an old crypto occurrence --- src/modules/documentExecution/dashboard/DashboardHelpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)