const deviceListStateInit: IDeviceListState = {
deviceList: [],
- busy: false
+ busy: false,
};
export const deviceListActionHandler: IActionHandler<IDeviceListState> = (state = deviceListStateInit, action) => {
state = {
...state,
- busy: true
+ busy: true,
};
} else if (action instanceof AllDeviceListLoadedAction) {
state = {
...state,
deviceList: action.deviceList,
- busy: false
+ busy: false,
};
} else {
state = {
...state,
- busy: false
+ busy: false,
};
}
}