From a25645ef77de91645126db76259b6246d0908ebb Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Sat, 23 Jul 2022 23:44:04 -0700 Subject: [PATCH] fix category setting --- src/ui/Mods.tsx | 13 ++++++++----- src/ui/components/mods/ModList.tsx | 2 ++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/ui/Mods.tsx b/src/ui/Mods.tsx index 50b9b20..d8b49f6 100644 --- a/src/ui/Mods.tsx +++ b/src/ui/Mods.tsx @@ -52,9 +52,12 @@ export class Mods extends React.Component { } async setCategory(value: string) { - this.setState({ - category: value, - }) + this.setState( + { + category: value, + }, + this.forceUpdate + ) } render() { @@ -62,9 +65,9 @@ export class Mods extends React.Component {
- + - +
) } diff --git a/src/ui/components/mods/ModList.tsx b/src/ui/components/mods/ModList.tsx index a5159b0..73f4b8e 100644 --- a/src/ui/components/mods/ModList.tsx +++ b/src/ui/components/mods/ModList.tsx @@ -18,6 +18,8 @@ export class ModList extends React.Component { constructor(props: IProps) { super(props) + console.log('Getting') + this.downloadMod = this.downloadMod.bind(this) }