diff --git a/src/ui/rulePanel.js b/src/ui/rulePanel.js index f275c38..616fa31 100644 --- a/src/ui/rulePanel.js +++ b/src/ui/rulePanel.js @@ -654,4 +654,13 @@ class SnippetView extends Component { ); } + UNSAFE_componentWillReceiveProps(nextProps) { + this.setState({ + snippetGroup: nextProps.snippetGroup, + d: nextProps.d, + description: nextProps.description, + exampleSnippet: nextProps.exampleSnippet, + exampleFilePath: nextProps.exampleFilePath + }); + } }