Skip to content

Commit

Permalink
UIIN-3127: Display informative error message when editing same instan…
Browse files Browse the repository at this point in the history
…ce, holdings, item in two tabs (#2672)

(cherry picked from commit c0f1176)
  • Loading branch information
OleksandrHladchenko1 authored and mariia-aloshyna committed Dec 4, 2024
1 parent 433fe63 commit 1ecb6bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1ecb6bb

Please sign in to comment.