From: Alec Armbruster <35377827+alectrocute@users.noreply.github.com> Date: Thu, 22 Jun 2023 22:44:15 +0000 (-0400) Subject: fix lack of modlog refetch on mount (#1490) X-Git-Url: http://these/git/%22%7B%7D/static/git-logo.png?a=commitdiff_plain;h=91a07e79fc3f7e345bb59c6471c6bdff3eeeff7b;p=lemmy-ui.git fix lack of modlog refetch on mount (#1490) Co-authored-by: Dessalines --- diff --git a/src/shared/components/modlog.tsx b/src/shared/components/modlog.tsx index e705bac..722f6e7 100644 --- a/src/shared/components/modlog.tsx +++ b/src/shared/components/modlog.tsx @@ -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) : [];