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

rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git


The following commit(s) were added to refs/heads/master by this push:
     new 651d3ba  views: fix sorting issue
651d3ba is described below

commit 651d3ba717380b41e6704eeebc3408af73c5e82a
Author: Rohit Yadav <[email protected]>
AuthorDate: Fri Feb 7 17:09:09 2020 +0530

    views: fix sorting issue
    
    Fixes #150
    
    Signed-off-by: Rohit Yadav <[email protected]>
---
 src/views/AutogenView.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/views/AutogenView.vue b/src/views/AutogenView.vue
index c8bd75f..b8727b6 100644
--- a/src/views/AutogenView.vue
+++ b/src/views/AutogenView.vue
@@ -399,7 +399,7 @@ export default {
           title: this.$t(key),
           dataIndex: key,
           scopedSlots: { customRender: key },
-          sorter: function (a, b) { return genericCompare(a[this.dataIndex], 
b[this.dataIndex]) }
+          sorter: function (a, b) { return genericCompare(a[this.dataIndex] || 
'', b[this.dataIndex] || '') }
         })
       }
 

Reply via email to