From 5cc949c5a2cf68b423f7ce81dad4906d0834519b Mon Sep 17 00:00:00 2001 From: Marcell Mars Date: Sun, 28 Mar 2021 03:19:34 +0200 Subject: [PATCH] frontmatter array (has_*) should be reversed so it doesn't change the order after edit... --- src/App.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.svelte b/src/App.svelte index 05bb0e3..9fccba2 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -27,7 +27,7 @@ Object.keys(frontmatter).forEach((fm)=>{ if (Array.isArray(frontmatter[fm])) { console.log("Array:", frontmatter[fm]) - frontmatter[fm].forEach((i)=>{ + frontmatter[fm].reverse().forEach((i)=>{ var input = document.createElement('input') input.setAttribute('type', 'text') input.setAttribute('name', `${fm}[]`)