From a22b44eb074a27b42ebdd324c007e3125006fa66 Mon Sep 17 00:00:00 2001 From: Asaf Gartner Date: Sat, 6 Jul 2024 13:04:08 +0300 Subject: [PATCH] Fixed link editor on new project creation --- src/templates/src/include/link_editor.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/templates/src/include/link_editor.html b/src/templates/src/include/link_editor.html index d6f7a148..4f122c46 100644 --- a/src/templates/src/include/link_editor.html +++ b/src/templates/src/include/link_editor.html @@ -37,7 +37,11 @@ updateLinksJSON(); }); + {{ if . }} const initialLinks = JSON.parse("{{ . }}"); + {{ else }} + const initialLinks = []; + {{ end }} for (const link of initialLinks) { const l = linkTemplate(); l.nameInput.value = link.name;