From ffb6fb59a3d6dfb7e533c4c16b12bee616c320f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Mon, 31 Mar 2025 11:54:55 +0200 Subject: [PATCH] DashboardSchemeV2: Fixes crash with transformations (#103042) --- .../serialization/transformSceneToSaveModelSchemaV2.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/public/app/features/dashboard-scene/serialization/transformSceneToSaveModelSchemaV2.ts b/public/app/features/dashboard-scene/serialization/transformSceneToSaveModelSchemaV2.ts index 8e775cfea10..572c10d88b6 100644 --- a/public/app/features/dashboard-scene/serialization/transformSceneToSaveModelSchemaV2.ts +++ b/public/app/features/dashboard-scene/serialization/transformSceneToSaveModelSchemaV2.ts @@ -302,10 +302,7 @@ function getVizPanelTransformations(vizPanel: VizPanel): TransformationKind[] { const transformationSpec: DataTransformerConfig = { id: transformation.id, disabled: transformation.disabled, - filter: { - id: transformation.filter?.id ?? '', - options: transformation.filter?.options ?? {}, - }, + filter: transformation.filter, ...(transformation.topic && { topic: transformation.topic }), options: transformation.options, };