mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 06:14:23 -05:00
fix bug where create_note_from_template can be called without calendar info
This commit is contained in:
@@ -281,6 +281,11 @@ local function calculate_dates(date)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function linesubst(line, title, dates)
|
local function linesubst(line, title, dates)
|
||||||
|
|
||||||
|
if dates == nil then
|
||||||
|
dates = calculate_dates()
|
||||||
|
end
|
||||||
|
|
||||||
local substs = {
|
local substs = {
|
||||||
hdate = dates.hdate,
|
hdate = dates.hdate,
|
||||||
week = dates.week,
|
week = dates.week,
|
||||||
|
|||||||
Reference in New Issue
Block a user