diff --git a/openbas-front/src/admin/components/atomic_testings/atomic_testing/AtomicTestingDetail.tsx b/openbas-front/src/admin/components/atomic_testings/atomic_testing/AtomicTestingDetail.tsx index db6b7769c6..c1577dec37 100644 --- a/openbas-front/src/admin/components/atomic_testings/atomic_testing/AtomicTestingDetail.tsx +++ b/openbas-front/src/admin/components/atomic_testings/atomic_testing/AtomicTestingDetail.tsx @@ -113,40 +113,40 @@ const AtomicTestingDetail: FunctionComponent = () => { {t('Command Lines')} {injectResultDto ? ( - - - {t('Content')} + + + {t('Content')} + + {(injectResultDto.inject_commands_lines?.content?.length ?? 0) > 0 ?
+              
+                {injectResultDto.inject_commands_lines?.content?.map((content, index) => (
+                  
  • {content}
  • + ))}
    - {(injectResultDto.inject_commands_lines?.content?.length ?? 0) > 0 ?
    -                
    -                   {injectResultDto.inject_commands_lines?.content?.map((content, index) => (
    -                       
  • {content}
  • - ))} -
    -
    : '-'} - - {t('Cleanup command')} - - {(injectResultDto.inject_commands_lines?.cleanup_command?.length ?? 0) > 0 ?
    -                
    -                    {injectResultDto.inject_commands_lines?.cleanup_command?.map((content, index) => (
    -                        
  • {content}
  • - ))} -
    -
    : '-'} - - {t('External ID')} - - {injectResultDto.inject_commands_lines?.external_id ?
    -                
    -                  {injectResultDto.inject_commands_lines?.external_id}
    -                
    -              
    : '-'} - - ) : ( - - {t('No data available')} - +
    : '-'} + + {t('Cleanup command')} + + {(injectResultDto.inject_commands_lines?.cleanup_command?.length ?? 0) > 0 ?
    +              
    +                {injectResultDto.inject_commands_lines?.cleanup_command?.map((content, index) => (
    +                  
  • {content}
  • + ))} +
    +
    : '-'} + + {t('External ID')} + + {injectResultDto.inject_commands_lines?.external_id ?
    +              
    +                {injectResultDto.inject_commands_lines?.external_id}
    +              
    +            
    : '-'} +
    + ) : ( + + {t('No data available')} + )}