fix(ui): correctly fallback to error message when traceback is empty string

This commit is contained in:
psychedelicious 2024-05-24 12:15:51 +10:00
parent 08a42c3c03
commit dc78a0e699

View File

@ -89,7 +89,7 @@ const QueueItemComponent = ({ queueItemDTO }: Props) => {
<Heading size="sm" color="error.400">
{t('common.error')}
</Heading>
<pre>{queueItem?.error_traceback ?? queueItem?.error_message}</pre>
<pre>{queueItem?.error_traceback || queueItem?.error_message}</pre>
</Flex>
)}
<Flex layerStyle="second" h={512} w="full" borderRadius="base" alignItems="center" justifyContent="center">