diff --git a/source/components/rule/Rule.js b/source/components/rule/Rule.js index 30c4df99d..b05df3231 100644 --- a/source/components/rule/Rule.js +++ b/source/components/rule/Rule.js @@ -24,6 +24,13 @@ export default class Rule extends Component { example: null, showValues: true } + + componentWillReceiveProps(nextProps) { + let dn = path(['rule', 'dottedName']) + if (dn(this.props) !== dn(this.nextProps)) { + this.setState({ example: null }) + } + } render() { let { form, rule } = this.props, conversationStarted = !isEmpty(form),