Skip to content

Commit

Permalink
fix wiki group ref (#6198)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael18811380328 authored Jun 13, 2024
1 parent 7e1d989 commit d7d0140
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/components/wiki-card-view/wiki-card-group.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ const propTypes = {

class WikiCardGroup extends Component {

constructor(props) {
super(props);
this.groupItemsRef = React.createRef();
}

componentDidMount() {
window.addEventListener('resize', this.onResize);
this.groupItemsRef = React.createRef();
}

componentWillUnmount() {
Expand Down

0 comments on commit d7d0140

Please sign in to comment.