Union of subs 'null' when app is initialized

This commit is contained in:
vjrj 2018-11-18 16:24:49 +01:00
parent 5f9a84dfd7
commit 1fdf86dd47

View file

@ -63,8 +63,8 @@ class SubscriptionsMap extends React.Component {
handleLeafletLoad(map) { handleLeafletLoad(map) {
// console.log('Map loading'); // console.log('Map loading');
// console.log(map); if (map && this.props.userSubs !== 'null') {
if (map) { // console.log(`Union of ${this.props.userSubs}`);
this.state.union = subsUnion(this.state.union, { this.state.union = subsUnion(this.state.union, {
map, map,
subs: this.props.userSubs, subs: this.props.userSubs,