From 814e485dd3190f86f30bba7aaac7b5dff87f45c9 Mon Sep 17 00:00:00 2001 From: Isabella Siu Date: Tue, 24 Jan 2023 09:05:41 -0500 Subject: [PATCH] CloudWatch: Prevent log groups from being removed on query change (#61891) --- .../plugins/datasource/cloudwatch/components/LogsCheatSheet.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/public/app/plugins/datasource/cloudwatch/components/LogsCheatSheet.tsx b/public/app/plugins/datasource/cloudwatch/components/LogsCheatSheet.tsx index c520d8a2ea0..0df75f024f1 100644 --- a/public/app/plugins/datasource/cloudwatch/components/LogsCheatSheet.tsx +++ b/public/app/plugins/datasource/cloudwatch/components/LogsCheatSheet.tsx @@ -237,6 +237,7 @@ export default class LogsCheatSheet extends PureComponent< region: this.props.query.region, id: this.props.query.refId ?? 'A', logGroupNames: 'logGroupNames' in this.props.query ? this.props.query.logGroupNames : [], + logGroups: 'logGroups' in this.props.query ? this.props.query.logGroups : [], }) } >