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:
@@ -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());
|
||||
});
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user