Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

null filter

Blue Mouse95ba8a473c9e
diff --git a/backend/apps/community/src/common/utils.ts b/backend/apps/community/src/common/utils.ts
index f8f684bd3..acccda01c 100644
--- a/backend/apps/community/src/common/utils.ts
+++ b/backend/apps/community/src/common/utils.ts
@@ -994,7 +994,10 @@ const updateAnnotationClickhouse = async (annotation: {
text?: string
}) => {
const filtered = _reduce(
- _filter(_keys(annotation), key => ALLOWED_ANNOTATION_KEYS.includes(key)),
+ _filter(
+ _keys(annotation),
+ key => ALLOWED_ANNOTATION_KEYS.includes(key) && annotation[key] != null,
+ ),
(obj, key) => {
obj[key] = annotation[key]
return obj