diff --git a/rdmo/management/assets/js/components/import/ImportSuccessElement.js b/rdmo/management/assets/js/components/import/ImportSuccessElement.js index ed4f3c38d1..4e3e915704 100644 --- a/rdmo/management/assets/js/components/import/ImportSuccessElement.js +++ b/rdmo/management/assets/js/components/import/ImportSuccessElement.js @@ -25,18 +25,15 @@ const ImportSuccessElement = ({ element, importActions }) => { - { - !isEmpty(element.errors) && !(element.created || element.updated) && ( - {' '}{gettext('could not be imported')} - )} - { - !isEmpty(element.errors) && (element.created || element.updated) && ( - <> - {', '} - {gettext('but could not be added to parent element')} - {'.'} - - )} + { + !isEmpty(element.errors) && ( + + {' '}{gettext('could not be imported')} + {(element.created || element.updated) && `, ${gettext('but could not be added to parent element')}`} + {'.'} + + ) + }