From 94a02157af640e534066f11d143e5fd7af924fc0 Mon Sep 17 00:00:00 2001 From: Faizaan Gagan Date: Thu, 25 Mar 2021 16:31:26 +0530 Subject: [PATCH] FIX: hide similar topics if the field becomes empty (#82) --- .../wizard/components/similar-topics-validator.js.es6 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/javascripts/wizard/components/similar-topics-validator.js.es6 b/assets/javascripts/wizard/components/similar-topics-validator.js.es6 index bb5091f8..f608fbde 100644 --- a/assets/javascripts/wizard/components/similar-topics-validator.js.es6 +++ b/assets/javascripts/wizard/components/similar-topics-validator.js.es6 @@ -92,7 +92,10 @@ export default WizardFieldValidator.extend({ customValidate() { const field = this.field; - if (!field.value) return; + if (!field.value) { + this.set('similarTopics', null); + return; + } const value = field.value; this.set("typing", true);