More work with subscriptions
This commit is contained in:
parent
316e14f0ea
commit
918103a17b
12 changed files with 29 additions and 14 deletions
|
|
@ -28,6 +28,6 @@ export default createContainer(({ match }) => {
|
|||
|
||||
return {
|
||||
loading: !subscription.ready(),
|
||||
doc: Subscriptions.findOne(subscriptionId)
|
||||
doc: Subscriptions.findOne(new Meteor.Collection.ObjectID(subscriptionId))
|
||||
};
|
||||
}, EditSubscription);
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ class FireSubscription extends React.Component {
|
|||
</Col>
|
||||
<Col xs={12} sm={12} md={6} lg={6} >
|
||||
<DistanceSlider onChange={value => this.onSliderChange(value)} />
|
||||
<Row className="align-items-center justify-content-center">
|
||||
<Row className="center-in-my-pos">
|
||||
<CenterInMyPosition onClick={viewport => this.centerOnUserLocation(viewport)} />
|
||||
</Row>
|
||||
</Col>
|
||||
|
|
|
|||
|
|
@ -60,6 +60,6 @@ export default createContainer(({ match }) => {
|
|||
|
||||
return {
|
||||
loading: !subscription.ready(),
|
||||
doc: Subscriptions.findOne(subscriptionId)
|
||||
doc: Subscriptions.findOne(new Meteor.Collection.ObjectID(subscriptionId))
|
||||
};
|
||||
}, ViewSubscription);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue