File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ function handleSuccess() {
106
106
tryApplyUpdates ( function onHotUpdateSuccess ( ) {
107
107
// Only dismiss it when we're sure it's a hot update.
108
108
// Otherwise it would flicker right before the reload.
109
- ErrorOverlay . dismissBuildError ( ) ;
109
+ tryDismissErrorOverlay ( ) ;
110
110
} ) ;
111
111
}
112
112
}
@@ -147,7 +147,7 @@ function handleWarnings(warnings) {
147
147
tryApplyUpdates ( function onSuccessfulHotUpdate ( ) {
148
148
// Only dismiss it when we're sure it's a hot update.
149
149
// Otherwise it would flicker right before the reload.
150
- ErrorOverlay . dismissBuildError ( ) ;
150
+ tryDismissErrorOverlay ( ) ;
151
151
} ) ;
152
152
}
153
153
}
@@ -179,6 +179,12 @@ function handleErrors(errors) {
179
179
// We will reload on next success instead.
180
180
}
181
181
182
+ function tryDismissErrorOverlay ( ) {
183
+ if ( ! hasCompileErrors ) {
184
+ ErrorOverlay . dismissBuildError ( ) ;
185
+ }
186
+ }
187
+
182
188
// There is a newer version of the code available.
183
189
function handleAvailableHash ( hash ) {
184
190
// Update last known compilation hash.
You can’t perform that action at this time.
0 commit comments