Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add check to pkg command to deal with empty values #6902

Merged
merged 14 commits into from
Oct 16, 2023
Prev Previous commit
Next Next commit
Remove temporary var value
  • Loading branch information
NeonArray committed Oct 16, 2023
commit 1c71e20c0595b129cfcdc32832349f7b4b56b365
5 changes: 2 additions & 3 deletions lib/utils/queryable.js
Original file line number Diff line number Diff line change
@@ -111,11 +111,10 @@ const getter = ({ data, key }) => {
}, {})
return _data
} else {
const value = _data[k]
if (value === undefined) {
if (_data[k] === undefined) {
return undefined
}
_data = value
_data = _data[k]
}

label += k