Type fixes
parent
c91fee164c
commit
7e76dd8030
|
@ -1,7 +1,7 @@
|
|||
import { TaggedLog } from "../resources/tagged_resources";
|
||||
import { store } from "../redux/store";
|
||||
import { batchInitResources, bothUp } from "./connect_device";
|
||||
import { getDeviceAccountSettings, maybeGetDevice } from "../resources/selectors";
|
||||
import { maybeGetDevice } from "../resources/selectors";
|
||||
import * as moment from "moment";
|
||||
import { DeviceAccountSettings } from "../devices/interfaces";
|
||||
|
||||
|
|
|
@ -190,7 +190,7 @@ export function maybeGetDevice(index: ResourceIndex): TaggedDevice | undefined {
|
|||
}
|
||||
|
||||
export const getDeviceAccountSettings =
|
||||
(index: ResourceIndex): TaggedDevice | undefined => {
|
||||
(index: ResourceIndex): TaggedDevice => {
|
||||
const device = maybeGetDevice(index);
|
||||
switch (index.byKind.Device.length) {
|
||||
case 0: return bail(`Tried to load device before it was loaded.`);
|
||||
|
|
Loading…
Reference in New Issue