From 35bcc368cf12622aaf0c4d67a8069ecb9a915e13 Mon Sep 17 00:00:00 2001 From: "grafana-delivery-bot[bot]" <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> Date: Thu, 24 Aug 2023 12:31:03 +0300 Subject: [PATCH] [v10.1.x] Alerting: Fix auto-completion snippets for KV properties (#73741) --- .../unified/components/receivers/editor/snippets.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/public/app/features/alerting/unified/components/receivers/editor/snippets.ts b/public/app/features/alerting/unified/components/receivers/editor/snippets.ts index 4038eb9857f..2230a126977 100644 --- a/public/app/features/alerting/unified/components/receivers/editor/snippets.ts +++ b/public/app/features/alerting/unified/components/receivers/editor/snippets.ts @@ -28,11 +28,11 @@ Annotations: {{ end }} `; -export const groupLabelsLoopSnippet = getKeyValueTemplate('GroupLabels'); -export const commonLabelsLoopSnippet = getKeyValueTemplate('CommonLabels'); -export const commonAnnotationsLoopSnippet = getKeyValueTemplate('CommonAnnotations'); -export const labelsLoopSnippet = getKeyValueTemplate('Labels'); -export const annotationsLoopSnippet = getKeyValueTemplate('Annotations'); +export const groupLabelsLoopSnippet = getKeyValueTemplate('GroupLabels.SortedPairs'); +export const commonLabelsLoopSnippet = getKeyValueTemplate('CommonLabels.SortedPairs'); +export const commonAnnotationsLoopSnippet = getKeyValueTemplate('CommonAnnotations.SortedPairs'); +export const labelsLoopSnippet = getKeyValueTemplate('Labels.SortedPairs'); +export const annotationsLoopSnippet = getKeyValueTemplate('Annotations.SortedPairs'); function getKeyValueTemplate(arrayName: string) { return `