diff --git a/CHANGELOG.md b/CHANGELOG.md index 388f13ec3..b097c7132 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ * Reset `qindex` once the search field is empty. Fixes STSMACOM-872. * Use `` and `stripes.hasAnyPerm` to check for Notes assign/unassign perm. Fixes STSMACOM-875. * Fetch updaters in `` on `props.metadata` changes. Fixes STSMACOM-878. +* Use `this.resources` in `StripesConnectedSource` instead of accessing props directly. Fixes STSMACOM-879. ## [9.2.0](https://github.com/folio-org/stripes-smart-components/tree/v9.2.0) (2024-10-11) [Full Changelog](https://github.com/folio-org/stripes-smart-components/compare/v9.1.3...v9.2.0) diff --git a/lib/SearchAndSort/ConnectedSource/StripesConnectedSource.js b/lib/SearchAndSort/ConnectedSource/StripesConnectedSource.js index 674773430..d08ad1399 100644 --- a/lib/SearchAndSort/ConnectedSource/StripesConnectedSource.js +++ b/lib/SearchAndSort/ConnectedSource/StripesConnectedSource.js @@ -66,10 +66,7 @@ export default class StripesConnectedSource { } failureMessage() { - const { - isRequestUrlExceededLimit, - parentResources, - } = this.props; + const { isRequestUrlExceededLimit } = this.props; const failed = this.recordsObj.failed; @@ -80,7 +77,7 @@ export default class StripesConnectedSource { // stripes-connect failure object has: dataKey, httpStatus, message, module, resource, throwErrors const res = `Error ${failed.httpStatus}: ${failed.message.replace(/.*:\s*/, '')}`; this.logger.log('source', 'failureMessage', res); - return ; + return ; } fetchMore(increment) {