@fto-consult/expo-ui 6.15.4 → 6.15.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": "6.15.4",
3
+ "version": "6.15.5",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -11,7 +11,7 @@ import {defaultStr,isPromise,defaultObj} from "$cutils";
11
11
  import {open as openPreloader,close as closePreloader} from "$preloader";
12
12
  import {styles as _styles} from "$theme";
13
13
  import Tooltip from "$ecomponents/Tooltip";
14
- import {navigateToTableData} from "$enavigation/utils";
14
+ import {navigateToTableData,navigateToStructData} from "$enavigation/utils";
15
15
  import Auth from "$cauth";
16
16
  import fetch from "$capi/fetch";
17
17
  import useContext from "$econtext/hooks";
@@ -46,8 +46,9 @@ const TableLinKComponent = React.forwardRef((props,ref)=>{
46
46
  const r2 = typeof fetchForeignData === 'function'? fetchForeignData({...args,...defaultObj(a)}) : undefined;
47
47
  if(isPromise(r2)){
48
48
  return r2.then((data)=>{
49
+ const nav = isStructData ? navigateToStructData : navigateToTableData;
49
50
  if(isObj(data) && (isNonNullString(foreignKeyColumn) ? data[foreignKeyColumn] !== undefined:true)){
50
- navigateToTableData({tableName:foreignKeyTable,data});
51
+ nav({tableName:foreignKeyTable,isStructData,data});
51
52
  }
52
53
  });
53
54
  }