chore: Lab debug and types. See #2838
This commit is contained in:
parent
47c6997d3a
commit
e960d31d96
5 changed files with 10 additions and 7 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue