Clicking on object in metadata overwrites it to [Object object]

Steps to reproduce

  • add data in object format to YAML frontmatter

eg.

---
things:
  thing:
    subthingOne: one
    subthingTwo: two
---
  • view in preview mode and highlight/touch value
  • view in source mode and behold, it has turned into the notorious “[Object object]”

Environment

SYSTEM INFO:
Obsidian version: v1.9.2
Installer version: v1.7.5
Operating system: Darwin Kernel Version 24.1.0: Thu Oct 10 21:06:57 PDT 2024; root:xnu-11215.41.3~3/RELEASE_ARM64_T6041 24.1.0
Login status: logged in
Language: en
Catalyst license: supporter
Insider build toggle: on
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

1 Like

If you use the Properties UI at all, the YAML will be reformatted.

Here are two relevant topics about this (there may be more):

and

Yup, reformatting YAML is expected of course, but I doubt reformatting to “[Object object]” was on purpose :slight_smile:

In preview version nested YAML showed as unknown and was uneditable:

Thanks, this is definitely a regression in 1.9. We will fix this for the next release.

3 Likes