Browse Source

Add else condition when one of the element is null

Luis Valladares 3 years ago
parent
commit
48a8b20972
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/bootstrap-table.js

+ 3 - 0
src/bootstrap-table.js

@@ -1034,6 +1034,9 @@ class BootstrapTable {
             for (let i = 0; i < props.length; i++) {
               if (value[props[i]] !== null) {
                 value = value[props[i]]
+              } else {
+                value = null
+                break;
               }
             }
           } else {