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

Error when creating new event in daily note #535

Open
3 of 7 tasks
Kryanne opened this issue Jan 15, 2024 · 3 comments
Open
3 of 7 tasks

Error when creating new event in daily note #535

Kryanne opened this issue Jan 15, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Kryanne
Copy link

Kryanne commented Jan 15, 2024

Please check that this issue hasn't been reported before.

  • I searched previous Bug Reports and didn't find any similar reports.

Expected Behavior

When I create an event, even if the diary doesn't exist yet, the calendar will create a daily note for the day with my heading for me.``

Current behaviour

Full calendar created a new diary note but there is no heading, causing error cast
8a692c2c30096635c45846b5eaf5aba
It worked just fine before but all of a sudden it just broke. I tried to uninstall and install the plugin but things still happened.
Is it because of the interface of creating daily note?

JavaScript console output

No response

Steps to reproduce

  1. click any day(no daily note) to create a event

Calendar information

Daily Note
use heading called 'heading'

Which Operating Systems are you using?

  • macOS
  • Windows
  • Linux
  • Android
  • iOS

Obsidian Version

1.5.3

Full Calendar Plugin Version

0.10.7

Checks

  • I have tried it with all other plugins disabled and the error still occurs.

Possible solution

In creatEvent method when creating a new daily note, add logic to insert the heading manually if the metadata doesn't contain the target heading maybe? I don't know much about js, so forgive me if I'm wrong about anything

Comments

I have used this pulgin for a long time, but it started to act weird in the last couple of days. If you have time plz check this. Thank you very much.

@Kryanne Kryanne added the bug Something isn't working label Jan 15, 2024
@Kryanne Kryanne closed this as completed Jan 15, 2024
@Kryanne Kryanne reopened this Jan 15, 2024
@Kryanne
Copy link
Author

Kryanne commented Jan 15, 2024

I've solved this by adding a template; it works fine now. But I've never used one before, so I am going to leave this issue open.

@ngokevin
Copy link

Related #556

@QuAzI
Copy link

QuAzI commented Aug 7, 2024

I've solved this by adding a template

Which data should present in the template?

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