From 313b0926ddf07e6481c3e961ca62f1c03f306914 Mon Sep 17 00:00:00 2001 From: saharmehrpour Date: Tue, 21 May 2024 21:34:45 -0400 Subject: [PATCH] fixed bug #64 --- src/ui/rulePanel.js | 9 +++++++++ 1 file changed, 9 insertions(+) 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 + }); + } }