benjypng / logseq-kanban-plugin

MIT License
102 stars 9 forks source link

index/returnPayload: Fix undefined reference t #8

Closed abhinav closed 2 years ago

abhinav commented 2 years ago

Following a prior refactor, the returnPayload function included references to the variable t to access its contents, but that variable is not defined in this scope.

This will result in the following error if used in TODO/DOING mode and a LOGBOOK is available.

Uncaught (in promise) ReferenceError: t is not defined
    at o (index.js:86)
    at index.js:98

Fix the error by accessing the provided content variable directly.

benjypng commented 2 years ago

Hi! Sorry for some reason Github stopped sending me email notifications. Apologies, I'm in the midst of converting my plugins to Typescript!