mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Co-authored-by: James Gowdy <jgowdy@elastic.co>
This commit is contained in:
parent
7a9749722a
commit
9ff581ea16
1 changed files with 6 additions and 1 deletions
|
@ -33,7 +33,12 @@ export const MLJobEditor: FC<MlJobEditorProps> = ({
|
|||
onChange = () => {},
|
||||
}) => {
|
||||
if (mode === ML_EDITOR_MODE.XJSON) {
|
||||
value = expandLiteralStrings(value);
|
||||
try {
|
||||
value = expandLiteralStrings(value);
|
||||
} catch (error) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(error);
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue