From f66f32f43f5e6cde250acb8464c4ca2c3eef6963 Mon Sep 17 00:00:00 2001 From: Lorenzo Natali Date: Wed, 2 Nov 2016 10:10:50 +0100 Subject: [PATCH] Fix #1235. Hide zoom to when loading error occours --- web/client/components/TOC/DefaultLayer.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/client/components/TOC/DefaultLayer.jsx b/web/client/components/TOC/DefaultLayer.jsx index 38766f2b3a..3f00bede4d 100644 --- a/web/client/components/TOC/DefaultLayer.jsx +++ b/web/client/components/TOC/DefaultLayer.jsx @@ -138,7 +138,7 @@ var DefaultLayer = React.createClass({ onClick={(node) => this.props.onToggle(node.id, node.expanded)}/> ); } - if (this.props.activateZoomTool && this.props.node.bbox) { + if (this.props.activateZoomTool && this.props.node.bbox && !this.props.node.loadingError) { tools.push(