fix lack of modlog refetch on mount (#1490)

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
This commit is contained in:
Alec Armbruster 2023-06-22 18:44:15 -04:00 committed by GitHub
parent 39f3f2b2e5
commit 91a07e79fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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) : [];