Browse Source

Fixed lint and remaining compilation issues

update-deps
Alex Mikhalev 7 years ago
parent
commit
a6876b54d8
  1. 6
      client/components/ProgramSequenceView.tsx
  2. 3
      client/state/AppState.ts
  3. 1
      server/Database.ts

6
client/components/ProgramSequenceView.tsx

@ -39,7 +39,7 @@ class ProgramSequenceItem extends React.Component<{
<SectionChooser <SectionChooser
label="Section" label="Section"
sections={sections} sections={sections}
value={section} sectionId={section.id}
onChange={this.onSectionChange} onChange={this.onSectionChange}
/> />
<DurationView <DurationView
@ -69,9 +69,9 @@ class ProgramSequenceItem extends React.Component<{
); );
} }
private onSectionChange = (newSection: Section) => { private onSectionChange = (newSectionId: number) => {
this.props.onChange(this.props.idx, new ProgramItem({ this.props.onChange(this.props.idx, new ProgramItem({
...this.props.sequenceItem, section: newSection.id, ...this.props.sequenceItem, section: newSectionId,
})); }));
} }

3
client/state/AppState.ts

@ -8,9 +8,8 @@ import { UiStore } from "@client/state/UiStore";
import { UserStore } from "@client/state/UserStore"; import { UserStore } from "@client/state/UserStore";
import ApiError from "@common/ApiError"; import ApiError from "@common/ApiError";
import { ErrorCode } from "@common/ErrorCode"; import { ErrorCode } from "@common/ErrorCode";
import { IUser } from "@common/httpApi";
import log from "@common/logger"; import log from "@common/logger";
import { TypedEventEmitter, DefaultEvents } from "@common/TypedEventEmitter"; import { DefaultEvents, TypedEventEmitter } from "@common/TypedEventEmitter";
interface AppEvents extends DefaultEvents { interface AppEvents extends DefaultEvents {
checkToken(): void; checkToken(): void;

1
server/Database.ts

@ -45,7 +45,6 @@ export class Database {
} }
async insertData() { async insertData() {
this.conn.subscribers
const NUM = 100; const NUM = 100;
const users: User[] = []; const users: User[] = [];
for (let i = 0; i < NUM; i++) { for (let i = 0; i < NUM; i++) {

Loading…
Cancel
Save