From 810b0735a1cc61102c60b358dcc34788da0262a8 Mon Sep 17 00:00:00 2001 From: Oleksandr Hladchenko1 Date: Wed, 20 Nov 2024 13:20:18 +0100 Subject: [PATCH] UIIN-3127: Display informative error message when editing same instance, holdings, item in two tabs --- CHANGELOG.md | 1 + src/utils.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dfae7746d..3ff18c585 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) 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();