Skip to content

Commit

Permalink
Only reset errors if there are errors
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewhassan committed Aug 7, 2024
1 parent c0762fc commit e64e8d7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function usePollAppLogs({initialJwt, filters, resubscribeCallback}: UsePo
nextJwtToken = result.nextJwtToken
}
retryIntervalMs = result.retryIntervalMs
} else {
} else if (errors.length) {
setErrors([])
}

Expand Down Expand Up @@ -95,6 +95,7 @@ export function usePollAppLogs({initialJwt, filters, resubscribeCallback}: UsePo
logTimestamp: log.log_timestamp,
}

console.log('setting app log outputs')
setAppLogOutputs((prev) => [...prev, {appLog, prefix}])
}
}
Expand Down

0 comments on commit e64e8d7

Please sign in to comment.