Skip to content

Missed trade creation writes duplicate currency keys, causing invalid YAML properties #7

Closed

Description

@ZenX404

Summary

A missed trade created through Journalit contains two currency keys in its YAML frontmatter. Obsidian displays “Invalid properties,” and Journalit cannot display the trade in its plugin view.

Environment: Journalit 1.10.0 on Windows.

Steps to reproduce

  1. Create a missed trade through Journalit with a currency set, such as USD.
  2. Open the resulting note and inspect its frontmatter.

Actual result

The generated frontmatter contains the same key twice, for example:

currency: USD
# ... other properties ...
currency: "USD"

Obsidian reports invalid properties, and the trade is not displayed correctly in the Journalit view.

Expected result

The generated frontmatter should contain currency only once, allowing Obsidian and Journalit to parse the note.

Possible cause

In the installed 1.10.0 bundle, generateMissedTradeContent explicitly serializes currency, but currency is absent from the set of fields excluded when the remaining input properties are appended. As a result, it appears to be serialized a second time by the generic property loop.

Workaround

Manually remove either duplicate currency line. After removing the second line in an in-memory check, the frontmatter parsed successfully as YAML.

Activity

  1. github-actions commented on Oct 31, 2026

    @github-actions
    Contributor

    Thanks for reaching out. Journalit uses Discord as the preferred support and feedback channel: https://discord.gg/AkSw3D9h8b. Public GitHub issues are limited to approved contributors, so this issue is being closed automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions