YukiGasai / obsidian-google-calendar

Add Google Calendar inside Obsidian
https://yukigasai.github.io/obsidian-google-calendar/
GNU General Public License v3.0
359 stars 25 forks source link

Potential fix for double frontmatter injection #152

Closed Bjaux closed 1 year ago

Bjaux commented 1 year ago

Potential fix for double frontmatter injection if frontmatterText couldn't be extracted successfully. Tested locally and fixed the problem for me. Seems to be related to frontmatter not being extracted successfully or the eventId being written within injectEventDetails and thus not being present when the eventId was injected first. This is the reason for the call order change.

YukiGasai commented 1 year ago

Hi, thank you for this contribution once again ^^. I tested the changes with templater and it looks good to me.