ods-component-lib 1.17.56 → 1.17.57

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.
@@ -1,4 +1,4 @@
1
- import React, { useState, useRef, useEffect } from 'react';
1
+ import React, { useState, useRef } from 'react';
2
2
  import { AutoComplete, Button, Dropdown, Calendar, Card as Card$1, Checkbox, DatePicker, Divider, Input, Form, Image, InputNumber, List, Modal, notification, Radio, Rate, Select, Spin, Switch, Tabs, Table, Tag, Timeline, TimePicker, Typography } from 'antd';
3
3
  import styled, { ThemeProvider } from 'styled-components';
4
4
  import Card from 'antd/es/card/Card';
@@ -1194,22 +1194,6 @@ var renderMenuItem = function renderMenuItem() {
1194
1194
  };
1195
1195
  function OdsDataGrid(props) {
1196
1196
  var dataGridRef = useRef(null);
1197
- useEffect(function () {
1198
- var dataGrid = dataGridRef.current.instance;
1199
- var fetchData = function fetchData() {
1200
- try {
1201
- var totalCount = props.dataSource.length;
1202
- dataGrid.beginUpdate();
1203
- dataGrid.totalCount(totalCount);
1204
- dataGrid.option('dataSource', [].concat(dataGrid.option('dataSource'), props.dataSource));
1205
- dataGrid.endUpdate();
1206
- return Promise.resolve();
1207
- } catch (e) {
1208
- return Promise.reject(e);
1209
- }
1210
- };
1211
- fetchData();
1212
- }, []);
1213
1197
  return grid(props, dataGridRef);
1214
1198
  }
1215
1199
  function grid(props, dataGridRef) {