mirror of
https://github.com/sasjs/server.git
synced 2026-01-07 22:50:05 +00:00
fix(log): fixed checks for errors and warnings
This commit is contained in:
@@ -18,10 +18,10 @@ const LogTabWithIcons = (props: LogTabProps) => {
|
||||
}}
|
||||
>
|
||||
<span>log</span>
|
||||
{errors.length !== 0 && (
|
||||
{errors && errors.length !== 0 && (
|
||||
<ErrorOutline color="error" style={{ fontSize: 20 }} />
|
||||
)}
|
||||
{warnings.length !== 0 && (
|
||||
{warnings && warnings.length !== 0 && (
|
||||
<Warning style={{ fontSize: 20, color: 'green' }} />
|
||||
)}{' '}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user