Skip to content

Commit

Permalink
Fixed dashboard widget cloning by removing an old crypto occurrence
Browse files Browse the repository at this point in the history
  • Loading branch information
Redjaw committed Jan 7, 2025
1 parent a69f86c commit fb81e77
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fb81e77

Please sign in to comment.