Fix translation (#190504)

Not sure why CI didn't fail in the [main
PR](https://github.com/elastic/kibana/pull/190031), but it did in the
[backport](https://github.com/elastic/kibana/pull/190494) 🤔
This commit is contained in:
Maryam Saeidi 2024-08-14 15:41:25 +02:00 committed by GitHub
parent f74d479014
commit 5ce361170c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -59,7 +59,8 @@ export const validateKQLStringFilter = (value: string) => {
});
} catch (e) {
return i18n.translate('xpack.observability.customThreshold.rule.schema.invalidFilterQuery', {
defaultMessage: `filterQuery must be a valid KQL filter (error: ${e.message})`,
defaultMessage: 'filterQuery must be a valid KQL filter (error: {errorMessage})',
values: { errorMessage: e?.message },
});
}
};