Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
TwIStOy committed Nov 29, 2023
1 parent 722768d commit 7a66eb1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lua/ht/plugins/edit/obsidian.lua
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,7 @@ M.lazy.config = function()
tags = note.tags,
lastModifiedTime = os.date("%Y-%m-%d"),
}
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
for k, v in pairs(note.metadata) do
if out[k] == nil then
out[k] = v
Expand Down

0 comments on commit 7a66eb1

Please sign in to comment.