Skip to content

Commit d5c144a

Browse files
committed
Add option types
1 parent cc947a8 commit d5c144a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/scripts.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -261,13 +261,13 @@ function parseProductData() {
261261
values: [],
262262
});
263263
} else {
264-
const [, valueId, valueTitle, value, selected, valueInStock] = cells;
264+
const [, valueId, valueTitle, value, selected, valueInStock, valueType] = cells;
265265
if (valueId && options.length > 0) {
266266
options[options.length - 1].values.push({
267267
id: valueId,
268268
title: valueTitle,
269269
value: value ?? valueTitle,
270-
type: 'TEXT', // TODO
270+
type: valueType ?? 'TEXT',
271271
selected,
272272
inStock: valueInStock,
273273
});

0 commit comments

Comments
 (0)