From ee068fdc1a01c9c813b29ac58fa41209046aee98 Mon Sep 17 00:00:00 2001 From: Yulong Ruan Date: Mon, 27 May 2024 08:47:44 +0800 Subject: [PATCH] fix vega visualization error message not been formatted (#6777) * fix vega visualization error message not been formatted --------- Signed-off-by: Yulong Ruan Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> --- changelogs/fragments/6777.yml | 2 ++ src/plugins/vis_type_vega/public/data_model/vega_parser.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/6777.yml diff --git a/changelogs/fragments/6777.yml b/changelogs/fragments/6777.yml new file mode 100644 index 000000000000..9e3a63925baa --- /dev/null +++ b/changelogs/fragments/6777.yml @@ -0,0 +1,2 @@ +fix: +- Error message is not formatted in vis_type_vega url parser. ([#6777](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/6777)) \ No newline at end of file diff --git a/src/plugins/vis_type_vega/public/data_model/vega_parser.ts b/src/plugins/vis_type_vega/public/data_model/vega_parser.ts index 0f0f9b32bb4b..927fbec6615b 100644 --- a/src/plugins/vis_type_vega/public/data_model/vega_parser.ts +++ b/src/plugins/vis_type_vega/public/data_model/vega_parser.ts @@ -674,7 +674,7 @@ The URL is an identifier only. OpenSearch Dashboards and your browser will never i18n.translate('visTypeVega.vegaParser.notSupportedUrlTypeErrorMessage', { defaultMessage: '{urlObject} is not supported', values: { - urlObject: 'url: {"%type%": "${type}"}', + urlObject: `url: {"%type%": "${type}"}`, }, }) );