From e9fe2bf9c53d125f987db52f9291542863cc63f2 Mon Sep 17 00:00:00 2001 From: Liquidmantis Date: Mon, 13 Dec 2021 18:09:04 -0700 Subject: [PATCH] fix bug where create_note_from_template can be called without calendar info --- lua/telekasten.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/telekasten.lua b/lua/telekasten.lua index 313544c..6338c24 100644 --- a/lua/telekasten.lua +++ b/lua/telekasten.lua @@ -281,6 +281,11 @@ local function calculate_dates(date) end local function linesubst(line, title, dates) + + if dates == nil then + dates = calculate_dates() + end + local substs = { hdate = dates.hdate, week = dates.week,