From ac6f4bfec3cd1af2e2435f6aeaaeb1eaf689df5f Mon Sep 17 00:00:00 2001 From: Chris Beer <cabeer@stanford.edu> Date: Tue, 12 Feb 2019 07:44:35 -0800 Subject: [PATCH] If the IIIF info response is already in the store, there's no need to request it again --- src/components/WindowViewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/WindowViewer.js b/src/components/WindowViewer.js index 9824fa7e5..a99dfc2ac 100644 --- a/src/components/WindowViewer.js +++ b/src/components/WindowViewer.js @@ -24,7 +24,7 @@ class WindowViewer extends Component { */ componentDidMount() { const { fetchInfoResponse } = this.props; - fetchInfoResponse(this.imageInformationUri()); + !this.infoResponseIsInStore() && fetchInfoResponse(this.imageInformationUri()); } /** -- GitLab