From 9dd446a70ffef6cb1db53cadc77f54823fba7d47 Mon Sep 17 00:00:00 2001 From: Alexander Lee Date: Fri, 21 Oct 2022 16:29:18 +0800 Subject: [PATCH] Fix: sites layout --- src/layouts/Sites.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/layouts/Sites.jsx b/src/layouts/Sites.jsx index c537cf019..c9a4a68c6 100644 --- a/src/layouts/Sites.jsx +++ b/src/layouts/Sites.jsx @@ -49,7 +49,12 @@ const Sites = ({ siteNames }) => { export default class SitesWrapper extends Component { _isMounted = false - constructor(props) {} + constructor(props) { + super(props) + this.state = { + siteNames: null, + } + } async componentDidMount() { this._isMounted = true