PKM-er / obsidian-zotlit

A third-party project that aims to facilitate the integration between Obsidian.md and Zotero, by providing a set of community plugins for both Obsidian and Zotero.
https://zotlit.aidenlx.top
MIT License
674 stars 29 forks source link

TypeError when rendering note: Cannot read properties of undefined (reading 'first') #385

Open ming-cui opened 1 month ago

ming-cui commented 1 month ago

Description

When attempting to create notes from certain journal articles, particularly those from the Academy of Management Journal (AMJ), the Zotlit plugin fails with a TypeError. Other journals work fine.

Error Message

See attached screenshot

image image

Environment

Obsidian Version: 1.6.7 Zotlit Version: 1.1.8 Operating System: Windows 10 Zotero Version: 7.0.6-beta.2+b4239fd4c (64-bit)

Steps to Reproduce

  1. Add the following article to Zotero: DOI: https://doi.org/10.5465/amj.2007.28165855 PDF Link: https://leeds-faculty.colorado.edu/dahe7472/colquitt%20and%20zapata-phelan%202007.pdf

  2. Attempt to create a note in Obsidian using the Zotlit plugin for this article

  3. Observe the error message

Expected Behavior

The plugin should successfully create a note for the AMJ article, as it does for articles from other journals.

Actual Behavior

The plugin fails to create a note and throws a TypeError.

Any assistance in resolving this issue would be greatly appreciated.