diff --git a/parser/registry/parser_registry/drop.js b/parser/registry/parser_registry/drop.js index f98e2fcc..f8a77909 100644 --- a/parser/registry/parser_registry/drop.js +++ b/parser/registry/parser_registry/drop.js @@ -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) { @@ -44,4 +44,4 @@ const viaStream = (token, query) => { module.exports = { viaClickhouseQuery, viaStream -} \ No newline at end of file +}