Skip to content

Commit

Permalink
Fix #1235. Hide zoom to when loading error occours
Browse files Browse the repository at this point in the history
  • Loading branch information
offtherailz committed Nov 2, 2016
1 parent 2ab0ab2 commit f66f32f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/client/components/TOC/DefaultLayer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
<LayersTool key="toolzoom"
ref="target"
Expand Down

0 comments on commit f66f32f

Please sign in to comment.