From fa711927130ae568aed436bddf5a3efac4d9725d Mon Sep 17 00:00:00 2001 From: Jan Umbach Date: Fri, 21 Jun 2024 23:45:51 +0200 Subject: [PATCH] shx-3d-render --- snippets/shx-3d-render-input.liquid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/shx-3d-render-input.liquid b/snippets/shx-3d-render-input.liquid index cc72f3f..9330c75 100644 --- a/snippets/shx-3d-render-input.liquid +++ b/snippets/shx-3d-render-input.liquid @@ -482,7 +482,7 @@ // the the last - and get the id let inputID = target.id.slice(0, target.id.lastIndexOf('-')); - let filamentID = target.id.slice(inputID.indexOf('-') + 1); + let filamentID = target.id.slice(inputID.lastIndexOf('-') + 1); console.log("input.id", target.id, "inputID", inputID, "filamentID", filamentID);