Skip to content

Buttons stopped working #606

@robertkstarr

Description

@robertkstarr

Please fill out these Check-boxes

  • I checked for existing similar issues
  • I checked that the plugin is up to date
  • The issue persists with all other plugins and themes disabled

Plugin Version

1.4.3

This Issue Occurs on

  • Windows
  • Linux
  • macOS
  • Android
  • iOS

Debug Info

{
  "process": {
    "arch": "arm64",
    "platform": "darwin"
  },
  "app": {
    "internalPlugins": {
      "config": {
        "file-explorer": true,
        "global-search": true,
        "switcher": true,
        "graph": true,
        "backlink": true,
        "canvas": true,
        "outgoing-link": true,
        "tag-pane": true,
        "properties": false,
        "page-preview": true,
        "daily-notes": true,
        "templates": true,
        "note-composer": true,
        "command-palette": true,
        "slash-command": false,
        "editor-status": true,
        "bookmarks": true,
        "markdown-importer": false,
        "zk-prefixer": false,
        "random-note": false,
        "outline": true,
        "word-count": true,
        "slides": false,
        "audio-recorder": false,
        "workspaces": false,
        "file-recovery": true,
        "publish": false,
        "sync": true,
        "starred": true,
        "webviewer": false
      }
    },
    "isMobile": false,
    "plugins": {
      "enabledPlugins": [
        "templater-obsidian",
        "obsidian-tasks-plugin",
        "obsidian-outliner",
        "obsidian-sort-and-permute-lines",
        "obsidian-media-db-plugin",
        "dataview",
        "calendar",
        "obsidian-book-search-plugin",
        "fountain-editor",
        "obsidian-custom-file-extensions-plugin",
        "obsidian-git",
        "obsidian-day-planner",
        "obsidian-latex-suite",
        "multi-column-markdown",
        "js-engine",
        "longform",
        "obsidian-meta-bind-plugin"
      ],
      "manifests": {
        "booksidian-plugin": {
          "version": "0.7.0"
        },
        "calendar": {
          "version": "1.5.10"
        },
        "dataview": {
          "version": "0.5.68"
        },
        "fountain-editor": {
          "version": "1.4.1"
        },
        "js-engine": {
          "version": "0.3.2"
        },
        "longform": {
          "version": "2.1.0"
        },
        "make-md": {
          "version": "1.1.7"
        },
        "multi-column-markdown": {
          "version": "0.9.1"
        },
        "obsidian-book-search-plugin": {
          "version": "0.7.5"
        },
        "obsidian-custom-file-extensions-plugin": {
          "version": "1.2.1"
        },
        "obsidian-day-planner": {
          "version": "0.28.0"
        },
        "obsidian-git": {
          "version": "2.34.0"
        },
        "obsidian-kindle-plugin": {
          "version": "1.9.2"
        },
        "obsidian-languagetool-plugin": {
          "version": "0.3.7"
        },
        "obsidian-latex-suite": {
          "version": "1.9.8"
        },
        "obsidian-media-db-plugin": {
          "version": "0.8.0"
        },
        "obsidian-meta-bind-plugin": {
          "version": "1.4.3"
        },
        "obsidian-outliner": {
          "version": "4.9.0"
        },
        "obsidian-sort-and-permute-lines": {
          "version": "0.7.0"
        },
        "obsidian-tasks-plugin": {
          "version": "7.20.0"
        },
        "templater-obsidian": {
          "version": "2.14.0"
        }
      }
    },
    "vault": {
      "config": {
        "accentColor": "",
        "enabledCssSnippets": [
          "obsidian",
          "basicFormatting"
        ],
        "cssTheme": "Obsidian Nord",
        "theme": "obsidian",
        "interfaceFontFamily": "Courier Prime",
        "textFontFamily": "Courier Prime",
        "monospaceFontFamily": "Courier New",
        "baseFontSize": 16,
        "alwaysUpdateLinks": true,
        "promptDelete": false,
        "spellcheckDictionary": [
          "Wordles",
          "Wowjobs",
          " Workopoli",
          " EngineerJob",
          " Wowjob",
          " Gigajob",
          " Careesm",
          "Glokta"
        ],
        "attachmentFolderPath": "Attachments",
        "showUnsupportedFiles": true
      }
    }
  },
  "plugin": {
    "settings": {
      "values": {
        "styleLists": true,
        "debug": false,
        "stickCursor": "bullet-and-checkbox",
        "betterEnter": true,
        "betterVimO": true,
        "betterTab": true,
        "selectAll": true,
        "listLines": true,
        "listLineAction": "toggle-folding",
        "dnd": true,
        "previousRelease": "4.8.0",
        "dndExperiment": false
      }
    }
  }
}

Describe the Issue

Buttons no longer update metadata when clicked. In the developer tools window, an error message this.sources.values(...).map is not a function continues to increase.

Image

Here's the text of an example button, but I've had the bug recur across multiple buttons:

meta-bind-button
label: Mark Read
icon: ""
style: default
class: "clipping-update-button center-button"
cssStyle: ""
backgroundImage: ""
tooltip: ""
id: "mark-read"
hidden: false
actions:
  - type: updateMetadata
    bindTarget: read
    evaluate: true
    value: "Intl.DateTimeFormat('en-CA').format(Date.now())"

Steps to Reproduce

  1. Set up a meta-bind button that edits metadata
  2. Click it

Expected Behavior

Expected the button to update the date in the metadata of the document and not return an error message in the developer tools

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behavior caused by this plugin

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions