ATLAS-4600 : (UI)Add classification button appears for deleted hive_columns in Schema Tab of hive_table entity details page.
Signed-off-by: Pinal Shah <pinal.shah@freestoneinfotech.com>
diff --git a/dashboardv2/public/js/views/schema/SchemaLayoutView.js b/dashboardv2/public/js/views/schema/SchemaLayoutView.js
index ab776e9..efc8e93 100644
--- a/dashboardv2/public/js/views/schema/SchemaLayoutView.js
+++ b/dashboardv2/public/js/views/schema/SchemaLayoutView.js
@@ -105,7 +105,7 @@
}
this.schemaCollection.find(function(item) {
var obj = item.toJSON();
- if (item.get('isEnable')) {
+ if (item.get('isEnable') && item.get('status') === 'ACTIVE') {
that.arr.push({
id: obj.guid,
model: obj
diff --git a/dashboardv3/public/js/views/schema/SchemaLayoutView.js b/dashboardv3/public/js/views/schema/SchemaLayoutView.js
index 79ddc57..1ae75d9 100644
--- a/dashboardv3/public/js/views/schema/SchemaLayoutView.js
+++ b/dashboardv3/public/js/views/schema/SchemaLayoutView.js
@@ -105,7 +105,7 @@
}
this.schemaCollection.find(function(item) {
var obj = item.toJSON();
- if (item.get('isEnable')) {
+ if (item.get('isEnable') && item.get('status') === 'ACTIVE') {
that.arr.push({
id: obj.guid,
model: obj