Skip to content

Commit

Permalink
fixed bug #64
Browse files Browse the repository at this point in the history
  • Loading branch information
saharmehrpour committed May 22, 2024
1 parent 05c262d commit 313b092
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/ui/rulePanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -654,4 +654,13 @@ class SnippetView extends Component {
</section>
);
}
UNSAFE_componentWillReceiveProps(nextProps) {
this.setState({
snippetGroup: nextProps.snippetGroup,
d: nextProps.d,
description: nextProps.description,
exampleSnippet: nextProps.exampleSnippet,
exampleFilePath: nextProps.exampleFilePath
});
}
}

0 comments on commit 313b092

Please sign in to comment.