Explorar o código

Table: fix data is an array of numbers, fixed #2108 (#2576)

cinwell.li %!s(int64=8) %!d(string=hai) anos
pai
achega
c07609b840
Modificáronse 1 ficheiros con 8 adicións e 8 borrados
  1. 8 8
      packages/table/src/table-store.js

+ 8 - 8
packages/table/src/table-store.js

@@ -87,14 +87,14 @@ TableStore.prototype.mutations = {
     states._data = data;
     states.data = sortData((data || []), states);
 
-    states.data.forEach((item) => {
-      if (!item.$extra) {
-        Object.defineProperty(item, '$extra', {
-          value: {},
-          enumerable: false
-        });
-      }
-    });
+    // states.data.forEach((item) => {
+    //   if (!item.$extra) {
+    //     Object.defineProperty(item, '$extra', {
+    //       value: {},
+    //       enumerable: false
+    //     });
+    //   }
+    // });
 
     this.updateCurrentRow();