This is an automated email from the ASF dual-hosted git repository.

nixon pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git

commit 5f81e288ca11781cd3afba49e82a60565e53fe60
Author: prasad pawar <prasad.pa...@freestoneinfotech.com>
AuthorDate: Fri Jun 4 17:23:11 2021 +0530

    ATLAS-4295: UI: The short/long description of term & category doesnt get 
updated immediately when made blank,fixed
    
    Signed-off-by: nixonrodrigues <ni...@apache.org>
    (cherry picked from commit 0a43c1980c75f37a58fbb69347ec7a0e8f508126)
---
 dashboardv2/public/js/views/glossary/GlossaryDetailLayoutView.js | 4 ++--
 dashboardv3/public/js/views/glossary/GlossaryDetailLayoutView.js | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dashboardv2/public/js/views/glossary/GlossaryDetailLayoutView.js 
b/dashboardv2/public/js/views/glossary/GlossaryDetailLayoutView.js
index 24a8b06..e30034c 100644
--- a/dashboardv2/public/js/views/glossary/GlossaryDetailLayoutView.js
+++ b/dashboardv2/public/js/views/glossary/GlossaryDetailLayoutView.js
@@ -297,8 +297,8 @@ define(['require',
                 Utils.hideTitleLoader(this.$('.fontLoader'), this.ui.details);
                 if (data) {
                     this.ui.title.text(data.name || data.displayText || 
data.qualifiedName);
-                    this.ui.shortDescription.text(data.shortDescription);
-                    this.ui.longDescription.text(data.longDescription);
+                    this.ui.shortDescription.text(data.shortDescription ? 
data.shortDescription : "");
+                    this.ui.longDescription.text(data.longDescription ? 
data.longDescription : "");
                     this.generateCategories(data.categories);
                     this.generateTerm(data.terms);
                     this.generateTag(data.classifications);
diff --git a/dashboardv3/public/js/views/glossary/GlossaryDetailLayoutView.js 
b/dashboardv3/public/js/views/glossary/GlossaryDetailLayoutView.js
index 24bfa2a..8b305e8 100644
--- a/dashboardv3/public/js/views/glossary/GlossaryDetailLayoutView.js
+++ b/dashboardv3/public/js/views/glossary/GlossaryDetailLayoutView.js
@@ -312,8 +312,8 @@ define(['require',
                 Utils.hideTitleLoader(this.$('.fontLoader'), this.ui.details);
                 if (data) {
                     this.ui.title.text(data.name || data.displayText || 
data.qualifiedName);
-                    this.ui.shortDescription.text(data.shortDescription);
-                    this.ui.longDescription.text(data.longDescription);
+                    this.ui.shortDescription.text(data.shortDescription ? 
data.shortDescription : "");
+                    this.ui.longDescription.text(data.longDescription ? 
data.longDescription : "");
                     this.generateCategories(data.categories);
                     this.generateTerm(data.terms);
                     this.generateTag(data.classifications);

Reply via email to