shx-3d-render

main
Jan Umbach 2024-06-22 13:48:14 +02:00
parent 4dd73f60a8
commit 467ab0d72b
1 changed files with 4 additions and 1 deletions

View File

@ -298,11 +298,14 @@
// Convert object to Map
let optionsKeys = Object.keys(options);
console.log("options", options);
console.log("optionsKeys", optionsKeys );
// Iterate over the Map
for (let i = 0; i < optionsKeys.length; i++) {
let color = optionsKeys[i];
console.log(color);
html += `
<input type="radio" id="${inputID}-${color}" form="product-form-${section_id}" name="properties[${inputName}]" value="${options[color].name} #${color}" ${inputVal === color ? 'checked' : ''}>