* fix taglines on home
* fix error on admin panel
trendingCommunitiesRes,
commentsRes,
postsRes,
- tagline: getRandomFromList(this.state?.siteRes?.taglines ?? [])
- ?.content,
isIsomorphic: true,
};
HomeCacheService.postsRes = postsRes;
}
+
+ this.state.tagline = getRandomFromList(
+ this.state?.siteRes?.taglines ?? []
+ )?.content;
}
componentWillUnmount() {
handleEditTaglineClick(d: { i: TaglineForm; index: number }, event: any) {
event.preventDefault();
- if (this.state.editingRow == d.index) {
+ if (d.i.state.editingRow == d.index) {
d.i.setState({ editingRow: undefined });
} else {
d.i.setState({ editingRow: d.index });