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}"}`, }, }) );