Skip to content

Commit e798c30

Browse files
fix(etl): metadata.js getMaterial failed when passed an element without attributes
1 parent 38552aa commit e798c30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/etl/src/metadata.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ function getMaterial(xml) {
229229
?.supportDesc?.support?.material;
230230

231231
// convert the pipe separated list of values in the string into an array
232-
if (ret) {
232+
if (ret && typeof ret !== 'string') {
233233
ret.subtype = ((ret?.subtype || '').split("|").map((g) => g.trim())).filter(g => g)
234234
}
235235

0 commit comments

Comments
 (0)