From 9fd043a568dc9e1c3f4dcfa0045298201e6fd8ac Mon Sep 17 00:00:00 2001 From: Stanislaw Adaszewski Date: Mon, 10 Feb 2020 17:47:06 +0100 Subject: [PATCH] Small improvements to manifest worker-based approach. --- frontend/src/js/component/wb-collection-content.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/frontend/src/js/component/wb-collection-content.js b/frontend/src/js/component/wb-collection-content.js index 3cb7a74..6067c2b 100644 --- a/frontend/src/js/component/wb-collection-content.js +++ b/frontend/src/js/component/wb-collection-content.js @@ -94,9 +94,12 @@ class WBCollectionContent extends Component { }); } - prom_1 = prom_1.then(() => this.setState({ - 'mode': 'browsingReady' - })); + prom_1 = prom_1.then(() => { + this.setState({ + 'mode': 'browsingReady' + }); + this.prepareRows(); + }); return prom_1; }); @@ -122,6 +125,11 @@ class WBCollectionContent extends Component { } prepareRows(listing) { + if (listing) + this.state.listing = listing; + else + listing = this.state.listing; + let { manifestReader, mode } = this.state; let { collectionPath, page, itemsPerPage } = this.props; let { arvHost, arvToken } = this.props.app.state;