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 {
20142014 const controls = { displayError : true } ;
20152015 this . valueStore . pushPendingPropsBackToDirty ( ) ;
20162016 this . hooks . triggerHook ( "response:error" , backendResponse , controls ) ;
2017- if ( controls . displayError ) {
2017+ if ( controls . displayError && ! headers . get ( "Content-Type" ) ?. includes ( "application/json" ) ) {
20182018 this . renderError ( html ) ;
20192019 }
20202020 this . backendRequest = null ;
Original file line number Diff line number Diff line change @@ -317,7 +317,7 @@ export default class Component {
317317 this . valueStore . pushPendingPropsBackToDirty ( ) ;
318318 this . hooks . triggerHook ( 'response:error' , backendResponse , controls ) ;
319319
320- if ( controls . displayError ) {
320+ if ( controls . displayError && ! headers . get ( 'Content-Type' ) ?. includes ( 'application/json' ) ) {
321321 this . renderError ( html ) ;
322322 }
323323
You can’t perform that action at this time.
0 commit comments