@fto-consult/expo-ui 2.45.4 → 2.45.5

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.45.4",
3
+ "version": "2.45.5",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -31,7 +31,7 @@ export default function DatabaseStatisticScreen ({withScreen,fetchDataProps,tabl
31
31
  }
32
32
  if(table.databaseStatistic === false || table.databaseStatistics === false) return null;
33
33
  const chartAllowedPerm = defaultStr(table.chartAllowedPerm);
34
- if(chartAllowedPerm && !Auth.isAllowedFromStr(chartAllowedPerm || !Auth.isTableDataAllowed({table:tableName}))) return null;
34
+ if((chartAllowedPerm && !Auth.isAllowedFromStr(chartAllowedPerm)) || (!Auth.isTableDataAllowed({table:tableName}))) return null;
35
35
  content.push(<Cell elevation = {5} withSurface mobileSize={12} desktopSize={3} tabletSize={4} {...contentProps} key = {index} >
36
36
  <DatabaseStatistic
37
37
  icon = {table.icon}