Skip to content

Commit 31346b6

Browse files
authored
fix(obsidian-nvim): remove util.table_length (#1603)
1 parent 53a6313 commit 31346b6

File tree

1 file changed

+1
-1
lines changed
  • lua/astrocommunity/note-taking/obsidian-nvim

1 file changed

+1
-1
lines changed

lua/astrocommunity/note-taking/obsidian-nvim/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ return {
6262
local out = { id = note.id, aliases = note.aliases, tags = note.tags }
6363
-- `note.metadata` contains any manually added fields in the frontmatter.
6464
-- 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
65+
if note.metadata ~= nil and not vim.tbl_isempty(note.metadata) then
6666
for k, v in pairs(note.metadata) do
6767
out[k] = v
6868
end

0 commit comments

Comments
 (0)