Repository: atlas
Updated Branches:
  refs/heads/branch-0.8 806f983e6 -> 5af729c85


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/a75967f1
Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/a75967f1
Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/a75967f1

Branch: refs/heads/branch-0.8
Commit: a75967f1daf4fed293471fa76e7b1eb556f681eb
Parents: 806f983
Author: kevalbhatt <kbh...@apache.org>
Authored: Thu Nov 1 15:55:28 2018 +0530
Committer: kevalbhatt <kbh...@apache.org>
Committed: Fri Nov 2 12:05:07 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/a75967f1/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 fe793f6..b5feabc 100644
--- a/dashboardv2/public/js/views/search/SearchResultLayoutView.js
+++ b/dashboardv2/public/js/views/search/SearchResultLayoutView.js
@@ -583,7 +583,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