File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2014,7 +2014,7 @@ var Component = class {
2014
2014
const controls = { displayError : true } ;
2015
2015
this . valueStore . pushPendingPropsBackToDirty ( ) ;
2016
2016
this . hooks . triggerHook ( "response:error" , backendResponse , controls ) ;
2017
- if ( controls . displayError ) {
2017
+ if ( controls . displayError && ! headers . get ( "Content-Type" ) ?. includes ( "application/json" ) ) {
2018
2018
this . renderError ( html ) ;
2019
2019
}
2020
2020
this . backendRequest = null ;
Original file line number Diff line number Diff line change @@ -317,7 +317,7 @@ export default class Component {
317
317
this . valueStore . pushPendingPropsBackToDirty ( ) ;
318
318
this . hooks . triggerHook ( 'response:error' , backendResponse , controls ) ;
319
319
320
- if ( controls . displayError ) {
320
+ if ( controls . displayError && ! headers . get ( 'Content-Type' ) ?. includes ( 'application/json' ) ) {
321
321
this . renderError ( html ) ;
322
322
}
323
323
You can’t perform that action at this time.
0 commit comments