mirror of
https://github.com/sasjs/server.git
synced 2026-01-08 15:00:05 +00:00
fix(log): fixed checks for errors and warnings
This commit is contained in:
@@ -86,7 +86,7 @@ const LogComponent = (props: LogComponentProps) => {
|
||||
defaultCollapseIcon={<ExpandMore />}
|
||||
defaultExpandIcon={<ChevronRight />}
|
||||
>
|
||||
{log?.errors.length !== 0 && (
|
||||
{log.errors && log.errors.length !== 0 && (
|
||||
<TreeItem
|
||||
nodeId="errors"
|
||||
label={
|
||||
@@ -106,7 +106,7 @@ const LogComponent = (props: LogComponentProps) => {
|
||||
))}
|
||||
</TreeItem>
|
||||
)}
|
||||
{log?.warnings.length !== 0 && (
|
||||
{log.warnings && log.warnings.length !== 0 && (
|
||||
<TreeItem
|
||||
nodeId="warnings"
|
||||
label={
|
||||
|
||||
Reference in New Issue
Block a user