浏览代码

Add else condition when one of the element is null

Luis Valladares 3 年之前
父节点
当前提交
48a8b20972
共有 1 个文件被更改,包括 3 次插入0 次删除
  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 {