Skip to content

[BUG] Capture choice crashes with error due to Templater's recent update #1086

@rx-chris

Description

@rx-chris

Describe the bug
My

To Reproduce
Steps to reproduce the behavior in Obsidian:

  1. Download latest Quickadd (2.9.4) and Templater (2.18.0)
  2. Create a capture choice with some capture format
  3. Run the quickadd command and see the error
  4. Refer to the attached test vault

testvault.zip

Expected behavior
The capture choice should execute perfectly

Obsidian Debug Info (required for bug reports)
Please include the full Debug Info from Obsidian to help diagnose your environment:

  • Open the Command Palette (Ctrl/Cmd+P).
  • Run: Show debug info.
  • Click: Copy to clipboard.
  • Paste it below inside the code block.
SYSTEM INFO:
	Obsidian version: v1.11.5
	Installer version: v1.7.7
	Operating system: Windows 10 Home 10.0.19045
	Login status: not logged in
	Language: en
	Insider build toggle: off
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: off
	Plugins installed: 2
	Plugins enabled: 2
		1: QuickAdd v2.9.4
		2: Templater v2.18.0

Screenshots

Image

Environment (please complete the following information):

  • Obsidian version: [e.g. 1.0.0]
  • QuickAdd version: [e.g. 0.5.0]
  • Operating system: [e.g. Windows 11]
  • Debug info: Paste output from Developer Tools (Ctrl+Shift+I or Cmd+Option+I on Mac)
  • Other plugins enabled: [List any other plugins that might be relevant]
  • Theme: [e.g. Default] (if applicable)

Console Logs
If applicable, open developer tools (Ctrl+Shift+I or Cmd+Option+I on Mac) and paste any relevant error messages.

plugin:quickadd:73 QuickAdd: (ERROR) Error running capture choice "test": Cannot convert undefined or null to object TypeError: Error running capture choice "test": Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at It (plugin:templater-obsidian:15:973)
    at pn.parse_template (plugin:templater-obsidian:18:75517)
    at async Yd (plugin:quickadd:26:157661)
    at async Wn.run (plugin:quickadd:84:1678)
    at async Ac.onChooseCaptureType (plugin:quickadd:87:9520)
    at async Ac.execute (plugin:quickadd:87:9246)
    at async Object.callback (plugin:quickadd:105:9556)

Mobile (if applicable, complete the following information):

  • Device: [e.g. iPhone 12]
  • OS: [e.g. iOS 15]
  • Obsidian version: [e.g. 1.0.0]
  • QuickAdd version: [e.g. 0.5.0]

Additional context
Add any other context about the problem here, such as specific settings or vault configuration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleased

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions