From f312be46dfd0066f195d4c8c47f074077fdfd1b1 Mon Sep 17 00:00:00 2001 From: kapishmalik Date: Tue, 28 May 2024 11:40:24 +0530 Subject: [PATCH] fix missing makezero in slice --- core/templating/templating.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/templating/templating.go b/core/templating/templating.go index fa3cc22a9..86f3bb7e2 100644 --- a/core/templating/templating.go +++ b/core/templating/templating.go @@ -141,7 +141,7 @@ func (t *Templator) NewTemplatingData(requestDetails *models.RequestDetails, lit templateJournal := Journal{} if journal != nil { - indexes := make([]JournalIndex, len(journal.Indexes)) + indexes := make([]JournalIndex, 0, len(journal.Indexes)) for _, index := range journal.Indexes { journalIndexEntries := make(map[string]JournalEntry)