Skip to content

Commit 5054233

Browse files
fixed error at line 401 (#2046)
when using postcss using parcel an error was occuring due to no check mentioned for value at line 401 , which caused error while reading value when it was undefined hence i added a check if its value is undefined continue and dont move forward
1 parent 0538b63 commit 5054233

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/node.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,9 @@ class Node {
399399
} else if (typeof value === 'object' && value.toJSON) {
400400
fixed[name] = value.toJSON(null, inputs)
401401
} else if (name === 'source') {
402+
if (value == null) {
403+
continue;
404+
}
402405
let inputId = inputs.get(value.input)
403406
if (inputId == null) {
404407
inputId = inputsNextIndex

0 commit comments

Comments
 (0)