Fixed link editor on new project creation

This commit is contained in:
Asaf Gartner 2024-07-06 13:04:08 +03:00
parent b6017fefff
commit a22b44eb07
1 changed files with 4 additions and 0 deletions

View File

@ -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;