mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-16 22:42:16 +00:00
fix(Dashboard New Widget Not Draggable): adds the widgetid property to newly created widgets if it is not already present
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user