Skip to content

Commit 0c135ad

Browse files
committed
Fix Saved Stations Not Updating on Desktop
1 parent 40cbff2 commit 0c135ad

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

js/views/savedstations.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,16 @@ class SavedSations extends React.Component {
8989
this.state = {
9090
stations: StationStore.getData(),
9191
}
92+
this.triggerUpdate = this.triggerUpdate.bind(this)
9293
}
9394
triggerUpdate() {
9495
this.setState({
9596
stations: StationStore.getData()
9697
})
9798
}
99+
componentDidMount() {
100+
StationStore.bind('change', this.triggerUpdate)
101+
}
98102
componentWillUnmount() {
99103
StationStore.unbind('change', this.triggerUpdate)
100104
}

scss/_content.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ $bgheight: 125px;
464464

465465
.saveModal {
466466
-webkit-tap-highlight-color: transparent;
467-
position: fixed;
467+
position: absolute;
468468
top: 0;
469469
left: 0;
470470
width: 100%;

0 commit comments

Comments
 (0)