Browse Source

Merge pull request #6190 from lvalladares/develop

Add else condition when one of the element is null
Dustin Utecht 3 years ago
parent
commit
42580e62b0
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 {