forked from ddrilling/asb_cloud_front
Deposit page zoom bugfix
This commit is contained in:
parent
4fc4dd5995
commit
79127d3beb
@ -7,7 +7,7 @@ import {ClusterService} from '../services/api'
|
|||||||
import notify from '../components/notify'
|
import notify from '../components/notify'
|
||||||
|
|
||||||
const calcViewParams = (clusters) => {
|
const calcViewParams = (clusters) => {
|
||||||
if (clusters || clusters.length === 0)
|
if ((!clusters) || clusters.length === 0)
|
||||||
return {center:[60.81226, 70.0562], zoom: 5}
|
return {center:[60.81226, 70.0562], zoom: 5}
|
||||||
|
|
||||||
const center = clusters.reduce((sum, cluster) => {
|
const center = clusters.reduce((sum, cluster) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user