We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83519b2 commit d021eacCopy full SHA for d021eac
lib/editor/components/GtfsEditor.js
@@ -60,6 +60,11 @@ export default class GtfsEditor extends Component {
60
}
61
62
componentWillMount () {
63
+ // Wipe any leftover state that may exist for other feed sources in editor.
64
+ // NOTE: Clear GTFS content happens outside of onComponentMount function so
65
+ // that it is only ever called on mount (onComponentMount is called after
66
+ // a successful snapshot/import when starting from scratch).
67
+ this.props.clearGtfsContent()
68
this.props.onComponentMount(this.props)
69
70
0 commit comments