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
  • Loading branch information
OleksandrHladchenko1 committed Nov 20, 2024
1 parent 47a9ce9 commit 810b073
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* ECS | Instance details pane does not contain all tenants when user does not have affiliations / permissions in all tenants. Fixes UIIN-3113.
* *BREAKING* Rename quick-marc routes from `bib` to `bibliographic` and `duplicate` to `derive`. Refs UIIN-3120.
* *BREAKING* Provide necessary props for browse lookup facets. Remove the facets state reset functionality. Refs UIIN-3099.
* Display informative error message when editing same instance, holdings, item in two tabs. Fixes UIIN-3127.

## [12.0.1](https://github.com/folio-org/ui-inventory/tree/v12.0.1) (2024-11-15)
[Full Changelog](https://github.com/folio-org/ui-inventory/compare/v12.0.0...v12.0.1)
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 810b073

Please sign in to comment.