Skip to content

Commit

Permalink
fix: fix possible crash when clearing the error banner
Browse files Browse the repository at this point in the history
  • Loading branch information
csm-thu committed Aug 28, 2024
1 parent 3580e67 commit b0269c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state/dispatchers/app/ApplicationDispatcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const dispatchSetApplicationErrorMessage = (error, errorMessage) => ({
: t('commoncomponents.banner.network', 'Network problem, please check your internet connection'),
detail: error?.detail || error?.response?.data?.detail || '',
status: error?.status || error?.response?.data?.status || '',
comment: errorMessage,
comment: error?.comment ?? errorMessage,
},
});

Expand Down

0 comments on commit b0269c4

Please sign in to comment.