Browse Source

updateCellByUniqueId bug fix (#4870)

* updateCellByUniqueId bug fix

```
if (!params.hasOwnProperty('id') ||
      !params.hasOwnProperty('field') ||
      !params.hasOwnProperty('value')) {
      return
    }
```

Was preventing passing multiples entries to updateCellByUniqueId.

Other methods may have to be fixed.

* Update bootstrap-table.js

Co-authored-by: 文翼 <wenzhixin2010@gmail.com>
Denis Migdal 5 years ago
parent
commit
ce4e1a0622
1 changed files with 0 additions and 5 deletions
  1. 0 5
      src/bootstrap-table.js

+ 0 - 5
src/bootstrap-table.js

@@ -2288,11 +2288,6 @@ class BootstrapTable {
   }
   }
 
 
   updateCellByUniqueId (params) {
   updateCellByUniqueId (params) {
-    if (!params.hasOwnProperty('id') ||
-      !params.hasOwnProperty('field') ||
-      !params.hasOwnProperty('value')) {
-      return
-    }
     const allParams = Array.isArray(params) ? params : [params]
     const allParams = Array.isArray(params) ? params : [params]
 
 
     allParams.forEach(({id, field, value}) => {
     allParams.forEach(({id, field, value}) => {