Skip to content

Commit

Permalink
Merge pull request #465 from metrico/fix/463_2
Browse files Browse the repository at this point in the history
fix: check if entry is undefined
  • Loading branch information
akvlad authored Feb 14, 2024
2 parents 7028774 + 570f5f9 commit 15a15d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parser/registry/parser_registry/drop.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const viaClickhouseQuery = (token, query) => {
const viaStream = (token, query) => {
const labelsToDrop = token.Children('label').map(l => l.value)
addStream(query, (s) => s.map(e => {
if (!e.labels) {
if (!e || !e.labels) {
return e
}
for (const l of labelsToDrop) {
Expand All @@ -44,4 +44,4 @@ const viaStream = (token, query) => {
module.exports = {
viaClickhouseQuery,
viaStream
}
}

0 comments on commit 15a15d9

Please sign in to comment.