@fto-consult/expo-ui 2.38.2 → 2.38.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "2.38.2",
3
+ "version": "2.38.3",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -196,6 +196,10 @@ const SWRDatagridComponent = React.forwardRef((props,ref)=>{
196
196
  const fetchCB = ({data,total})=>{
197
197
  totalRef.current = total;
198
198
  dataRef.current = data;
199
+ const dd = Object.size(data);
200
+ if(dd>total){
201
+ total = dd;
202
+ }
199
203
  hasResultRef.current = true;
200
204
  if(onFetchData && typeof onFetchData =='function'){
201
205
  onFetchData({allData:data,total,data,context:innerRef.current})