From 5a199c32b14802b192bb5559bc76f3048d40a3c1 Mon Sep 17 00:00:00 2001 From: Jan Umbach Date: Sat, 22 Jun 2024 13:42:42 +0200 Subject: [PATCH] shx-3d-render --- snippets/shx-3d-render-input.liquid | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/snippets/shx-3d-render-input.liquid b/snippets/shx-3d-render-input.liquid index 92e7742..35ac6d3 100644 --- a/snippets/shx-3d-render-input.liquid +++ b/snippets/shx-3d-render-input.liquid @@ -294,7 +294,11 @@
`; - for(let color in options) { + // Convert object to Map + let optionsMap = new Map(Object.entries(options)); + + // Iterate over the Map + for (let [color, value] of optionsMap) { html += `