Fixed lint and remaining compilation issues
This commit is contained in:
parent
f345344974
commit
a6876b54d8
@ -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,
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
@ -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…
x
Reference in New Issue
Block a user