mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 13:28:36 +03:00
change nomenclature: isFetchingEvents -> isFetchingSources
This commit is contained in:
@@ -99,7 +99,7 @@ function mapStateToProps(state) {
|
||||
language: state.app.language,
|
||||
tools: state.ui.tools,
|
||||
isCardstack: state.ui.flags.isCardstack,
|
||||
isLoading: state.ui.flags.isFetchingEvents
|
||||
isLoading: state.ui.flags.isFetchingSources
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -46,11 +46,9 @@ class Dashboard extends React.Component {
|
||||
handleSelect(selected) {
|
||||
if (selected) {
|
||||
let eventsToSelect = selected.map(event => this.getEventById(event.id));
|
||||
const parser = this.props.ui.tools.parser;
|
||||
const p = this.props.ui.tools.parser;
|
||||
|
||||
eventsToSelect = eventsToSelect.sort((a, b) => {
|
||||
return parser(a.timestamp) - parser(b.timestamp);
|
||||
});
|
||||
eventsToSelect = eventsToSelect.sort((a, b) => p(a.timestamp) - p(b.timestamp))
|
||||
|
||||
this.props.actions.fetchSelected(eventsToSelect)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user