Skip to content

fix: board drag-and-drop writes to [object Object] instead of property name - #559

Open
Ju4n5e wants to merge 1 commit into
Make-md:mainfrom
Ju4n5e:fix/board-drag-drop-object-object
Open

fix: board drag-and-drop writes to [object Object] instead of property name#559
Ju4n5e wants to merge 1 commit into
Make-md:mainfrom
Ju4n5e:fix/board-drag-drop-object-object

Conversation

@Ju4n5e

@Ju4n5e Ju4n5e commented Aug 24, 2026

Copy link
Copy Markdown

Summary

  • Fixes board/list view drag-and-drop writing to a corrupted "[object Object]" frontmatter key instead of the actual grouped property name (e.g., Status)
  • Root cause: _groupField is a column descriptor object, not a string — using it as a computed property key calls .toString(), producing "[object Object]"
  • Extracts .name from the field object at both usage sites in dropListItem, consistent with how the plugin's own template expressions already handle it ($root.props['_groupField']?.name)

Fixes #558

Test plan

  • Create a folder with notes that have a Status property and set up a board view grouped by Status
  • Drag a card from one column to another
  • Verify in source mode that the Status property updates correctly and no "[object Object]" key appears
  • Verify drag-and-drop reordering within the same column still works
  • Verify drag-and-drop works for non-default schemas (the updateTableValue code path)

🤖 Generated with Claude Code

…oard drag-and-drop

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 Make-md#558

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Drag-and-drop on board view writes to "[object Object]" frontmatter key instead of the grouped property name

1 participant