Fixed link editor on new project creation
This commit is contained in:
parent
b6017fefff
commit
a22b44eb07
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue