We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
util.table_length
1 parent 53a6313 commit 31346b6Copy full SHA for 31346b6
lua/astrocommunity/note-taking/obsidian-nvim/init.lua
@@ -62,7 +62,7 @@ return {
62
local out = { id = note.id, aliases = note.aliases, tags = note.tags }
63
-- `note.metadata` contains any manually added fields in the frontmatter.
64
-- So here we just make sure those fields are kept in the frontmatter.
65
- if note.metadata ~= nil and require("obsidian").util.table_length(note.metadata) > 0 then
+ if note.metadata ~= nil and not vim.tbl_isempty(note.metadata) then
66
for k, v in pairs(note.metadata) do
67
out[k] = v
68
end
0 commit comments