We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b10dc53 commit 93cff46Copy full SHA for 93cff46
examples/metaobjects/app/utils/parseSection.ts
@@ -21,6 +21,7 @@ export function parseSection<InputType, ReturnType>(_section: InputType) {
21
const isMetafield = node?.type && node?.value;
22
const isArray = Array.isArray(node);
23
if (isArray) {
24
+ // @ts-ignore
25
parsed[key] = node.map((item) => parseSection(item));
26
} else if (isMetafield) {
27
parsed[key] = parseMetafieldValue(node);
0 commit comments