generated from obsidianmd/obsidian-sample-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 71
Closed as not planned
Labels
bugUndesired behavior caused by this pluginUndesired behavior caused by this plugin
Description
Please fill out these Check-boxes
- I checked that the plugin is up to date
- The issue persist with all other plugins and themes disabled
This Issue Occurs on
- Windows
- Linux
- macOS
- Android
- iOS
Plugin Version
1.1.2
Describe the Issue
using the update Metadata button Action example in the Example vault, I get an error "getMetadata is not defined" in the console.
here is the full report form console :
plugin:obsidian-meta-bind-plugin:51 meta-bind | ButtonMDRC >> error while running action ReferenceError: getMetadata is not defined
at eval (eval at runUpdateMetadataAction (plugin:obsidian-meta-bind-plugin:1:1), <anonymous>:3:1)
at Vh.updateMetadata (plugin:obsidian-meta-bind-plugin:111:18106)
at _p.runUpdateMetadataAction (plugin:obsidian-meta-bind-plugin:51:8971)
at _p.runAction (plugin:obsidian-meta-bind-plugin:51:7071)
at _p.runButtonAction (plugin:obsidian-meta-bind-plugin:51:5269)
at onClick (plugin:obsidian-meta-bind-plugin:57:14656)
at f (plugin:obsidian-meta-bind-plugin:57:13305)
at HTMLButtonElement.p (plugin:obsidian-meta-bind-plugin:57:13406)
runButtonAction @ plugin:obsidian-meta-bind-plugin:51
await in runButtonAction (async)
onClick @ plugin:obsidian-meta-bind-plugin:57
f @ plugin:obsidian-meta-bind-plugin:57
p @ plugin:obsidian-meta-bind-plugin:57
Steps to Reproduce
- copy the code from the Example vault from line 208 to 263
- paste in an obsidian note
- click the buttons newly created
- note that the buttons "+1" "reset" and "-1" work as expected
- note that the button "add count to count2" returns an error "getMetadata is not defined" in the console
Expected Behavior
clicking on "add count to count2" should use the "getMetadata" function and allow for calculation with multiple variables in the file.
Metadata
Metadata
Assignees
Labels
bugUndesired behavior caused by this pluginUndesired behavior caused by this plugin