ods-component-lib 1.17.54 → 1.17.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1201,10 +1201,12 @@ function OdsDataGrid(props) {
|
|
|
1201
1201
|
React.useEffect(function () {
|
|
1202
1202
|
setTimeout(function () {
|
|
1203
1203
|
var totalCount = props.dataSource.length;
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1204
|
+
if (dataGridRef.current.instance.component !== undefined) {
|
|
1205
|
+
debugger;
|
|
1206
|
+
dataGridRef.current.instance.component.beginUpdate();
|
|
1207
|
+
dataGridRef.current.instance.totalCount(totalCount);
|
|
1208
|
+
dataGridRef.current.instance.component.endUpdate();
|
|
1209
|
+
}
|
|
1208
1210
|
}, 1000);
|
|
1209
1211
|
}, [props.dataSource]);
|
|
1210
1212
|
return grid(props, dataGridRef);
|