1
0
Fork 0

chore: Lab debug and types. See #2838

This commit is contained in:
Joost De Cock 2022-09-28 19:22:22 +02:00
parent 47c6997d3a
commit e960d31d96
5 changed files with 10 additions and 7 deletions

View file

@ -1,6 +1,6 @@
import DefaultErrorView from 'shared/components/error/view'
const Error = ({ logs=[], updateGist }) => {
const Error = ({ logs = [], updateGist }) => {
let errors = 0
let warnings = 0
for (const log of logs) {
@ -13,7 +13,7 @@ const Error = ({ logs=[], updateGist }) => {
<li>
Check the{' '}
<button className="btn-link" onClick={() => updateGist(['_state', 'view'], 'logs')}>
<strong>{errors.length} errors</strong> and <strong>{warnings.length} warnings</strong>
<strong>{errors} errors</strong> and <strong>{warnings} warnings</strong>
</button>
</li>
<li>Check the partially rendered pattern below to see which areas are problematic</li>