From d652dd666c0f65eff83e0c3957dcd41dba91d1af Mon Sep 17 00:00:00 2001 From: Maksym Yadlovskyi Date: Fri, 22 Nov 2024 12:43:05 +0100 Subject: [PATCH 1/2] Fix event annotation error --- .../components/visualizations/utils/getFieldNameFromTrace.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/graylog2-web-interface/src/views/components/visualizations/utils/getFieldNameFromTrace.ts b/graylog2-web-interface/src/views/components/visualizations/utils/getFieldNameFromTrace.ts index 02ab969df6a0..5545f8803c15 100644 --- a/graylog2-web-interface/src/views/components/visualizations/utils/getFieldNameFromTrace.ts +++ b/graylog2-web-interface/src/views/components/visualizations/utils/getFieldNameFromTrace.ts @@ -19,6 +19,8 @@ import type Series from 'views/logic/aggregationbuilder/Series'; import { parseSeries } from 'views/logic/aggregationbuilder/Series'; const getFieldNameFromTrace = ({ series, fullPath }: { series: Array, fullPath: string }) => { + if (!fullPath) return null; + const desireSeries = series.find((s) => { const nameToFInd = s.config.name ?? s.function; From 67cb48ed4ebef5f5b03186d9ed2715297c7a5990 Mon Sep 17 00:00:00 2001 From: Maksym Yadlovskyi Date: Fri, 22 Nov 2024 12:47:47 +0100 Subject: [PATCH 2/2] add changelog --- changelog/unreleased/issue-20932.toml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 changelog/unreleased/issue-20932.toml diff --git a/changelog/unreleased/issue-20932.toml b/changelog/unreleased/issue-20932.toml new file mode 100644 index 000000000000..c1e54d1e56f2 --- /dev/null +++ b/changelog/unreleased/issue-20932.toml @@ -0,0 +1,5 @@ +type = "fixed" +message = "Fix error when ticking or unticking show event annotations" + +issues = ["20932"] +pulls = ["21028"]