Skip to content

Commit

Permalink
fix wiki group ref
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael18811380328 committed Jun 13, 2024
1 parent 7e1d989 commit 6ed2481
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 6ed2481

Please sign in to comment.