Fixed lint and remaining compilation issues

This commit is contained in:
Alex Mikhalev 2018-08-17 14:41:18 -06:00
parent f345344974
commit a6876b54d8
3 changed files with 4 additions and 6 deletions

View File

@ -39,7 +39,7 @@ class ProgramSequenceItem extends React.Component<{
<SectionChooser
label="Section"
sections={sections}
value={section}
sectionId={section.id}
onChange={this.onSectionChange}
/>
<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.sequenceItem, section: newSection.id,
...this.props.sequenceItem, section: newSectionId,
}));
}

View File

@ -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;

View File

@ -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++) {