Open AMGMNPLK opened 1 month ago
Guess this exception wasn't handled properly: https://github.com/brianpetro/obsidian-smart-connections/blob/367f17767e84fe86fb2208ec1f1154d70af7687c/src/sc_smart_view.js#L200
- if (item.path.indexOf("{") > -1) return;
+ if (!item?.path || item.path.indexOf("{") > -1) return;
Description
When exporting a "UNTITLE CHAT" note by Smart Connection: A TypeError is occurring in the
ScSmartView2.add_link_listeners
function of thesmart-connections
plugin. The error message indicates that the code is trying to read theindexOf
property of an undefined value.Expected Behavior
Print the visible note without encountering any errors.
Actual Behavior
The plugin throws a TypeError when attempting to read the
indexOf
property of an undefined value in theScSmartView2.add_link_listeners
function.Error Stack Trace
Feel free to provide any additional details or clarifications that could assist in resolving the issue.