From a9d82de25c97ecc68fd43f8592d845da3c316808 Mon Sep 17 00:00:00 2001 From: chfhtw Date: Mon, 20 Apr 2026 12:47:48 +0200 Subject: [PATCH] handle custom prop like other internal props --- public/js/components/Dashboard/Admin/Presets.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/js/components/Dashboard/Admin/Presets.js b/public/js/components/Dashboard/Admin/Presets.js index ef1c06e00..a28a8afc6 100644 --- a/public/js/components/Dashboard/Admin/Presets.js +++ b/public/js/components/Dashboard/Admin/Presets.js @@ -72,14 +72,13 @@ export default { if (section.widgets[wid].id == k) { payload[k] = ObjectUtils.mergeDeep(section.widgets[wid], payload[k]); // NOTE(chris): remove internal props - for (var prop of ['_x', '_y', '_w', '_h', 'index', 'id']) + for (var prop of ['_x', '_y', '_w', '_h', 'index', 'id', 'custom']) if (payload[k][prop]) delete payload[k][prop]; break; } } payload[k].widgetid = k; - delete payload[k].custom; } this.$api .call(Object.entries(payload).map(([key, widget]) => [