Empty frontmatter 'aliases' cause forever searching for 'Unlinked mentions'

Steps to reproduce

  1. Create new file
  2. Use template to add front matter (or manually add it)
---
aliases: [""]
created: ["{{date}} {{time}}"]
---
  1. Leave aliases blank (in other words, none set up yet).

Expected result

The search to time out, or just not search for empty aliases.

Actual result

The search bar animation under the ‘Unlinked mentions’ forever runs. I can stop it by deleting the empty aliases frontmatter or filling it with any text. I’m not sure if this is a bug or just me using not as it was intended.

Environment

  • Operating system: Windows 10
  • Obsidian version: 0.11.12 (this bug is not new though)

Additional information

To be clear, I’m referring to the purple line:
image

For empty aliases, can you try either

---
aliases : []
---

or

---
aliases : 
- 
---

I think your current value is not really considered an empty list.

I agree that is not equivalent to empty. Regardless, we should handle this case better.

2 Likes

@argentum Clever. Thanks for the tip. I have updated my template. It certainly will help so I don’t have to look at the loading animation forever.

I’m going to leave this as unsolved for now since it looks like @WhiteNoise thinks something should/could be done. As far as I’m concerned it’s solved though. So please mod-mark it as done if you feel that’s the better solution.

Thanks again.

fixed in 0.11.13

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.