Repository: atlas
Updated Branches:
  refs/heads/branch-1.0 817db51f7 -> 23e856c17


ATLAS-2950 : UI - In newer versions of chrome i.e 70 onwards, if a new column 
is added the instead of right most it appears at the left most

(cherry picked from commit 75947444baceff7ed84baee10da7b56c86f86ab9)


Project: http://git-wip-us.apache.org/repos/asf/atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/23e856c1
Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/23e856c1
Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/23e856c1

Branch: refs/heads/branch-1.0
Commit: 23e856c17751b36fb083d377752128289e477c75
Parents: 817db51
Author: kevalbhatt <kbh...@apache.org>
Authored: Thu Nov 1 15:55:28 2018 +0530
Committer: kevalbhatt <kbh...@apache.org>
Committed: Thu Nov 1 16:01:54 2018 +0530

----------------------------------------------------------------------
 dashboardv2/public/js/views/search/SearchResultLayoutView.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/atlas/blob/23e856c1/dashboardv2/public/js/views/search/SearchResultLayoutView.js
----------------------------------------------------------------------
diff --git a/dashboardv2/public/js/views/search/SearchResultLayoutView.js 
b/dashboardv2/public/js/views/search/SearchResultLayoutView.js
index 0707807..5178495 100644
--- a/dashboardv2/public/js/views/search/SearchResultLayoutView.js
+++ b/dashboardv2/public/js/views/search/SearchResultLayoutView.js
@@ -572,7 +572,8 @@ define(['require',
             getColumnOrder: function(arr) {
                 var obj = {};
                 for (var i = 0; i < arr.length; ++i) {
-                    obj[(arr[i].innerText == "" ? 'Select' : 
arr[i].innerText)] = i;
+                    var innerText = arr[i].innerText.trim();
+                    obj[(innerText == "" ? 'Select' : innerText)] = i;
                 }
                 return obj;
             },

Reply via email to