From 2ac56910060d0a0ea9947bf30b49ae3b66e46adb Mon Sep 17 00:00:00 2001 From: Mariia_Aloshyna Date: Thu, 9 Nov 2023 16:44:30 +0200 Subject: [PATCH] UIIN-2680: Fetch sharing of local instance status in the context of member tenant (#2340) (cherry picked from commit ae7adbad39be44273012fc3ff98b6792966cb7cf) --- CHANGELOG.md | 4 ++++ src/ViewInstance.js | 6 ------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f2d326b23..e57b0a6e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change history for ui-inventory +## [10.0.4] IN PROGRESS + +* Fetch sharing of local instance status in the context of member tenant. Refs UIIN-2680. + ## [10.0.3](https://github.com/folio-org/ui-inventory/tree/v10.0.3) (2023-11-08) [Full Changelog](https://github.com/folio-org/ui-inventory/compare/v10.0.2...v10.0.3) diff --git a/src/ViewInstance.js b/src/ViewInstance.js index 146344a59..03d57e728 100644 --- a/src/ViewInstance.js +++ b/src/ViewInstance.js @@ -45,7 +45,6 @@ import { indentifierTypeNames, INSTANCE_SHARING_STATUSES, layers, - OKAPI_TENANT_HEADER, REQUEST_OPEN_STATUSES, } from './constants'; import { DataContext } from './contexts'; @@ -447,11 +446,6 @@ class ViewInstance extends React.Component { checkInstanceSharingProgress = ({ sourceTenantId, instanceIdentifier }) => { return this.props.mutator.shareInstance.GET({ params: { sourceTenantId, instanceIdentifier }, - headers: { - [OKAPI_TENANT_HEADER]: this.props.centralTenantId, - 'Content-Type': 'application/json', - ...(this.props.okapi.token && { 'X-Okapi-Token': this.props.okapi.token }), - }, }); }