mcndt / obsidian-toggl-integration

A Toggl integration plugin for the popular knowledge base application Obsidian.
GNU General Public License v3.0
267 stars 19 forks source link

Side panel fails to update when running time entry has no project #151

Open leoccyao opened 6 months ago

leoccyao commented 6 months ago

Steps to reproduce:

Expected result:

Actual result:

image

The console generates the following error:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'name')
    at Array.create_if_block_15 (plugin:obsidian-toggl-integration:21915:34)
    at Object.p (plugin:obsidian-toggl-integration:22326:104)
    at update (plugin:obsidian-toggl-integration:12880:32)
    at flush (plugin:obsidian-toggl-integration:12851:7)

Sadly, Svelte is a bit out of my depth for now.

MacOS Sonoma 14.1.1, Obsidian 1.4.13, Obsidian Toggl Integration 0.11.0.