Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/LiveComponent/assets/dist/live_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -2014,7 +2014,7 @@ var Component = class {
const controls = { displayError: true };
this.valueStore.pushPendingPropsBackToDirty();
this.hooks.triggerHook("response:error", backendResponse, controls);
if (controls.displayError) {
if (controls.displayError && !headers.get("Content-Type")?.includes("application/json")) {
this.renderError(html);
}
this.backendRequest = null;
Expand Down
2 changes: 1 addition & 1 deletion src/LiveComponent/assets/src/Component/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ export default class Component {
this.valueStore.pushPendingPropsBackToDirty();
this.hooks.triggerHook('response:error', backendResponse, controls);

if (controls.displayError) {
if (controls.displayError && !headers.get('Content-Type')?.includes('application/json')) {
this.renderError(html);
}

Expand Down
Loading