diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ffd31663..e9a1e88c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Change history for ui-inventory +## [12.0.5] (IN PROGRESS) +* Display informative error message when editing same instance, holdings, item in two tabs. Fixes UIIN-3127. + ## [12.0.4](https://github.com/folio-org/ui-inventory/tree/v12.0.4) (2024-12-03) [Full Changelog](https://github.com/folio-org/ui-inventory/compare/v12.0.3...v12.0.4) diff --git a/src/utils.js b/src/utils.js index 11a9127fb..70697919b 100644 --- a/src/utils.js +++ b/src/utils.js @@ -702,7 +702,7 @@ export const parseHttpError = async httpError => { let jsonError = {}; try { - if (contentType === 'text/plain') { + if (contentType.includes('text/plain')) { jsonError.message = await httpError.text(); } else { jsonError = await httpError.json();