Update metadata when it's a list to add another element and not replace them #215
-
I have a metadata property, named "places" (translated, but irrelevant), that is a list of internal links to other notes that represent those places. Example:
or value: x + ["\n - [[2]]"] and no "places" in the frontmatter the property becomes: places: |-
undefined
- '[[2]]' with no elements in "places" becomes: places: |-
null
- '[[2]]' and with places: "[[1]]" the property becomes: places: |-
[[1]]
- [[2]] without the "\n" there won't be a list and everything'll be a one-liner. So: how do I actually update a list property in the frontmatter? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
try something like |
Beta Was this translation helpful? Give feedback.
try something like
value: "[...x, 'new value']"