diff --git a/x-pack/legacy/plugins/snapshot_restore/public/app/sections/home/repository_list/repository_details/repository_details.tsx b/x-pack/legacy/plugins/snapshot_restore/public/app/sections/home/repository_list/repository_details/repository_details.tsx index 922d58511ec0e9..0a3fcfc2ec6e7a 100644 --- a/x-pack/legacy/plugins/snapshot_restore/public/app/sections/home/repository_list/repository_details/repository_details.tsx +++ b/x-pack/legacy/plugins/snapshot_restore/public/app/sections/home/repository_list/repository_details/repository_details.tsx @@ -361,14 +361,11 @@ export const RepositoryDetails: React.FunctionComponent = ({ })} >

- {JSON.stringify( - cleanup.error - ? cleanup.error - : i18n.translate( - 'xpack.snapshotRestore.repositoryDetails.cleanupUnknownError', - { defaultMessage: '503: Unknown error' } - ) - )} + {cleanup.error + ? JSON.stringify(cleanup.error) + : i18n.translate('xpack.snapshotRestore.repositoryDetails.cleanupUnknownError', { + defaultMessage: '503: Unknown error', + })}

)}