Skip to content

Commit

Permalink
Merge pull request #66 from devuxd/Fix_examples
Browse files Browse the repository at this point in the history
fixed bug #64
  • Loading branch information
SaharMehrpour authored May 22, 2024
2 parents 05c262d + 313b092 commit c83cc96
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 c83cc96

Please sign in to comment.