Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properties Error #257

Open
cosmic-hobo opened this issue Nov 27, 2023 · 5 comments
Open

Properties Error #257

cosmic-hobo opened this issue Nov 27, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@cosmic-hobo
Copy link

cosmic-hobo commented Nov 27, 2023

Describe the bug
For those literature items with a subtitle (with an auto-generated colon), obsidian displays a properties error. Since the update to V 1.4.16 on October 13, 2023, the error displays in red (see picture). The literatrue items with a single title are not affected by these behavior.

To Reproduce
The error occurs when a literature note is created ("citation: open literature note")

Console output
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'removeGlobalClasses')
at Zen.saveSettings (plugin:zen:464:18)

Expected behavior
The properties ought to be displayed in black (see example below)

Screenshots
literature item with error
Screenshot from 2023-11-27 10-41-41

literature item without error
Screenshot from 2023-11-27 10-42-15

Platform

  • OS: Debian GNU/Linux 12
  • Obsidian version 1.4.16
  • Plugin version 0.4.5
@cosmic-hobo cosmic-hobo added the bug Something isn't working label Nov 27, 2023
@orionpilot
Copy link

I've gotten around the colon not being valid YAML by adding quotes around the relevant fields in the citations template, e.g., "{{title}}" rather than {{title}} directly.

@cosmic-hobo
Copy link
Author

that's a great workaround, thank you!

@m-hrachov
Copy link

Hi! How do you render the creation date? By me, it omits the normal {{date}} or {{time}} whenever I want to add it ...

@cosmic-hobo
Copy link
Author

that's what is in my template:

creation date: <% tp.file.creation_date("DD-MM-YYYY HH:mm") %>

@m-hrachov
Copy link

Thanks! Had to toggle "use Templater on new notes" - your answer helped me to get to this conclusion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants