Fixed link editor on new project creation
This commit is contained in:
parent
b6017fefff
commit
a22b44eb07
|
@ -37,7 +37,11 @@
|
||||||
updateLinksJSON();
|
updateLinksJSON();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
{{ if . }}
|
||||||
const initialLinks = JSON.parse("{{ . }}");
|
const initialLinks = JSON.parse("{{ . }}");
|
||||||
|
{{ else }}
|
||||||
|
const initialLinks = [];
|
||||||
|
{{ end }}
|
||||||
for (const link of initialLinks) {
|
for (const link of initialLinks) {
|
||||||
const l = linkTemplate();
|
const l = linkTemplate();
|
||||||
l.nameInput.value = link.name;
|
l.nameInput.value = link.name;
|
||||||
|
|
Loading…
Reference in New Issue