From 4d003573cc717e0f3c042436c83503b2f1209607 Mon Sep 17 00:00:00 2001 From: Juan Sebastian Suarez Ramirez Date: Mon, 24 Aug 2026 10:06:35 -0500 Subject: [PATCH] fix: extract .name from _groupField before using as property key in board drag-and-drop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When dragging a card between columns on a board view, the _groupField prop is a column descriptor object (e.g. {name: "Status", type: "option", ...}). Using it directly as a computed property key calls .toString(), producing the literal string "[object Object]" instead of the property name. This causes the frontmatter to gain a corrupted key "[object Object]" while the intended property (e.g. Status) is never updated, making drag-and-drop appear broken. The fix extracts .name from the field object at both usage sites in dropListItem — consistent with how the plugin's own template expressions already handle it (e.g. `$root.props['_groupField']?.name`). Fixes #558 Co-Authored-By: Claude Opus 4.6 --- .../SpaceView/Contexts/ContextBuilder/ContextListInstance.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/react/components/SpaceView/Contexts/ContextBuilder/ContextListInstance.tsx b/src/core/react/components/SpaceView/Contexts/ContextBuilder/ContextListInstance.tsx index 38560df6..1d568621 100644 --- a/src/core/react/components/SpaceView/Contexts/ContextBuilder/ContextListInstance.tsx +++ b/src/core/react/components/SpaceView/Contexts/ContextBuilder/ContextListInstance.tsx @@ -240,7 +240,7 @@ const dropListItem = async ( if (groupValueMismatch) { { saveProperties(props.superstate, activePath, { - [props.props?._groupField]: props.props?._groupValue, + [props.props?._groupField?.name]: props.props?._groupValue, }); } } else { @@ -259,7 +259,7 @@ const dropListItem = async ( spaceInfo, active.data.current.schema, active.data.current.contexts?.$context?.["_index"], - props.props?._groupField, + props.props?._groupField?.name, props.props?._groupValue, context?._index );