diff --git a/client/components/ProgramSequenceView.tsx b/client/components/ProgramSequenceView.tsx index 396df59..18b1b90 100644 --- a/client/components/ProgramSequenceView.tsx +++ b/client/components/ProgramSequenceView.tsx @@ -39,7 +39,7 @@ class ProgramSequenceItem extends React.Component<{ { + private onSectionChange = (newSectionId: number) => { this.props.onChange(this.props.idx, new ProgramItem({ - ...this.props.sequenceItem, section: newSection.id, + ...this.props.sequenceItem, section: newSectionId, })); } diff --git a/client/state/AppState.ts b/client/state/AppState.ts index f0a67f5..269fdfd 100644 --- a/client/state/AppState.ts +++ b/client/state/AppState.ts @@ -8,9 +8,8 @@ import { UiStore } from "@client/state/UiStore"; import { UserStore } from "@client/state/UserStore"; import ApiError from "@common/ApiError"; import { ErrorCode } from "@common/ErrorCode"; -import { IUser } from "@common/httpApi"; import log from "@common/logger"; -import { TypedEventEmitter, DefaultEvents } from "@common/TypedEventEmitter"; +import { DefaultEvents, TypedEventEmitter } from "@common/TypedEventEmitter"; interface AppEvents extends DefaultEvents { checkToken(): void; diff --git a/server/Database.ts b/server/Database.ts index 314c3ff..03d9ae3 100644 --- a/server/Database.ts +++ b/server/Database.ts @@ -45,7 +45,6 @@ export class Database { } async insertData() { - this.conn.subscribers const NUM = 100; const users: User[] = []; for (let i = 0; i < NUM; i++) {