ATLAS-4793: (UI) Search Issues
Signed-off-by: Prasad Pawar <prasad.pawar@cloudera.com>
diff --git a/dashboardv2/public/js/views/search/SearchResultLayoutView.js b/dashboardv2/public/js/views/search/SearchResultLayoutView.js
index 03b9d59..9dde943 100644
--- a/dashboardv2/public/js/views/search/SearchResultLayoutView.js
+++ b/dashboardv2/public/js/views/search/SearchResultLayoutView.js
@@ -701,7 +701,7 @@
}),
businessAttributeDefs,
that = this;
- businessAttributeDefs = def.get('businessAttributeDefs');
+ businessAttributeDefs = def ? def.get('businessAttributeDefs') : null;
if (businessAttributeDefs) {
_.each(
businessAttributeDefs,
diff --git a/dashboardv3/public/js/views/search/SearchResultLayoutView.js b/dashboardv3/public/js/views/search/SearchResultLayoutView.js
index 2d3d212..07bb878 100644
--- a/dashboardv3/public/js/views/search/SearchResultLayoutView.js
+++ b/dashboardv3/public/js/views/search/SearchResultLayoutView.js
@@ -713,7 +713,7 @@
}),
businessAttributeDefs,
that = this;
- businessAttributeDefs = def.get('businessAttributeDefs');
+ businessAttributeDefs = def ? def.get('businessAttributeDefs') : null;
if (businessAttributeDefs) {
_.each(
businessAttributeDefs,