Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ UIIN-3437.
* *BREAKING* Migrate config values from mod-configuration. Refs UIIN-3426.
* Make interface dependencies optional (audit-inventory, circulation). Refs UIIN-3592.
* Improve usage of GET `/users-keycloak/_self` requests in "Inventory" app. Fixes UIIN-3585.
* Error handling is missing when creating holdings. Fixes UIIN-3591.

## [13.0.10](https://github.com/folio-org/ui-inventory/tree/v13.0.10) (2025-09-01)
[Full Changelog](https://github.com/folio-org/ui-inventory/compare/v13.0.9...v13.0.10)
Expand Down
11 changes: 11 additions & 0 deletions src/Holding/CreateHolding/CreateHolding.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,16 @@ const CreateHolding = ({
values={{ hrid: holdingsRecord.hrid }}
/>,
});
})
.catch((error) => {
const defaultErrorMessage = <FormattedMessage id="ui-inventory.communicationProblem" />;

error.text().then(text => {
callout.sendCallout({
type: 'error',
message: text || defaultErrorMessage,
});
});
});
}, [onCancel, callout]);

Expand Down Expand Up @@ -95,6 +105,7 @@ CreateHolding.manifest = Object.freeze({
type: 'okapi',
path: 'holdings-storage/holdings',
fetch: false,
throwErrors: false,
},
});

Expand Down
Loading