Skip to content

Commit f6f80dd

Browse files
authored
Merge pull request #3466 from plotly/fix-errors-tab
fix errors tab selected by default
2 parents 7e47fad + 16eb367 commit f6f80dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dash/dash-renderer/src/components/error/menu/DebugMenu.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ const Debug = ({error, hotReload, config, children}) => {
168168
const errors = concat(error.frontEnd, error.backEnd);
169169

170170
useEffect(() => {
171-
if (error !== null && popup !== 'errors') {
171+
if (errors.length && popup !== 'errors') {
172172
setPopup('errors');
173173
}
174174
}, [error]);

0 commit comments

Comments
 (0)