]> Untitled Git - lemmy-ui.git/commitdiff
fix lack of modlog refetch on mount (#1490)
authorAlec Armbruster <35377827+alectrocute@users.noreply.github.com>
Thu, 22 Jun 2023 22:44:15 +0000 (18:44 -0400)
committerGitHub <noreply@github.com>
Thu, 22 Jun 2023 22:44:15 +0000 (18:44 -0400)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
src/shared/components/modlog.tsx

index e705bac86694affe85e7f72d7dbe71ece7b0e841..722f6e7088211749f6ee2a4a80b61ea88488c4db 100644 (file)
@@ -686,6 +686,10 @@ export class Modlog extends Component<
     }
   }
 
+  async componentDidMount() {
+    await this.refetch();
+  }
+
   get combined() {
     const res = this.state.res;
     const combined = res.state == "success" ? buildCombined(res.data) : [];