blob: e15c2d2109f061c817e21d3e5ac32238fa33ed53 (
plain)
1
2
3
4
5
6
7
8
9
10
|
import {OPEN_SIMULATION_SUCCEEDED} from "../actions/simulations";
export function currentSimulationId(state = -1, action) {
switch (action.type) {
case OPEN_SIMULATION_SUCCEEDED:
return action.id;
default:
return state;
}
}
|