From 7bcb3597fe3697a1218b5e92ca606ddbdeb3dcd4 Mon Sep 17 00:00:00 2001 From: jvmdc <109624469+jvmdc@users.noreply.github.com> Date: Thu, 24 Aug 2023 11:23:08 +0200 Subject: [PATCH] Alerting: Fix auto-completion snippets for KV properties (#73394) --- .../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 `