nullish operator ??
doesnt work on JS-view context varaibles
#564
Labels
bug
Undesired behavior caused by this plugin
this is not really a bug and more of a documentation / discussion.
Describe the Issue
all undefined variables will be initialized with the empty string when filling
context
of a JS-view field.obsidian-meta-bind-plugin/packages/core/src/fields/viewFields/JsViewFieldMountable.ts
Line 61 in 7cab274
Steps to Reproduce
The following JS-view doesn't behave as expected. instead of returning
empty
for undefined properties, it will return the empty string.Further context
Not sure how this behavior guards against other issues I cant think of right now. In that case it should be better documented to avoid confusion.
The text was updated successfully, but these errors were encountered: