1
0
mirror of https://github.com/mgerb/classic-wow-forums synced 2026-01-12 01:52:49 +00:00

switch from yarn to npm - other minor updates

This commit is contained in:
2018-04-30 20:13:13 -05:00
parent 0b6522f5f2
commit ac7d913e30
10 changed files with 16196 additions and 6767 deletions

View File

@@ -130,7 +130,7 @@ export class Forum extends React.Component<Props, State> {
private onSearch(event: any) {
event.preventDefault();
const threads = filter(cloneDeep(this.state.initialThreads), (t) => {
const threads: any = filter(cloneDeep(this.state.initialThreads), (t) => {
return t.title.toLowerCase().match(this.state.searchText.toLowerCase());
});

View File

@@ -30,7 +30,7 @@ export class Realms extends React.Component<Props, State> {
const realms = chain(res)
.filter({ category: 'realm' })
.orderBy(['title'])
.value();
.value() as CategoryModel[];
this.setState({ realms });
} catch (e) {
console.error(e);