Skip to content

Commit f0fad84

Browse files
committed
Fix auto open errors
1 parent 894fdd7 commit f0fad84

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,12 @@ const Debug = ({error, hotReload, config, children}) => {
167167

168168
const errors = concat(error.frontEnd, error.backEnd);
169169

170+
useEffect(() => {
171+
if (error !== null && popup !== 'errors') {
172+
setPopup('errors');
173+
}
174+
}, [error]);
175+
170176
const popupContent = (
171177
<div className='dash-debug-menu__popup'>
172178
{popup == 'callbackGraph' ? <CallbackGraphContainer /> : undefined}

0 commit comments

Comments
 (0)