mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
Sort simulators by last state update
This commit is contained in:
parent
10b03ff8dd
commit
1cf45a2cae
1 changed files with 5 additions and 2 deletions
|
@ -44,10 +44,13 @@ class Simulators extends Component {
|
|||
}
|
||||
|
||||
static calculateState() {
|
||||
const simulators = SimulatorStore.getState().sort((a, b) => {
|
||||
return a.stateUpdatedAt < b.stateUpdatedAt;
|
||||
});
|
||||
|
||||
return {
|
||||
sessionToken: UserStore.getState().token,
|
||||
simulators: SimulatorStore.getState(),
|
||||
|
||||
simulators,
|
||||
modalSimulator: {},
|
||||
deleteModal: false,
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue