From a25ccd79b26627a3e95ac7e896e459a8f0b29880 Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Mon, 14 Apr 2025 14:46:11 +0200 Subject: [PATCH] fix(Dashboard New Widget Not Draggable): adds the widgetid property to newly created widgets if it is not already present --- public/js/components/Dashboard/Section.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/js/components/Dashboard/Section.js b/public/js/components/Dashboard/Section.js index b14047148..8c2826f0c 100644 --- a/public/js/components/Dashboard/Section.js +++ b/public/js/components/Dashboard/Section.js @@ -82,6 +82,9 @@ export default { } */ let placedItems = this.widgets.map(item => { + if(!item?.widgetid && item?.id){ + item.widgetid = item.id; + } return { ...item, reorder: false, ...(item.place[this.gridWidth] || { reorder: true, ...{ x: 0, y: 0, w: 1, h: 1 } })}; }); return placedItems;