@fto-consult/expo-ui 6.84.0 → 6.85.0
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
@@ -681,7 +681,7 @@ export default class TableDataScreenComponent extends FormDataScreen{
|
|
681
681
|
@param {function} callback, la fonction de rappel à appeler une fois que la données a été mise à jour
|
682
682
|
@return {this} le contexte
|
683
683
|
*/
|
684
|
-
|
684
|
+
reloadCurrentData(currentData,callback){
|
685
685
|
currentData = isObj(currentData)? currentData : {};
|
686
686
|
if(this.state.hasManyData && Array.isArray(this.state.datas)){
|
687
687
|
const sData = [...this.state.datas];
|
@@ -690,7 +690,6 @@ export default class TableDataScreenComponent extends FormDataScreen{
|
|
690
690
|
} else {
|
691
691
|
return this.setState({data:currentData},callback);
|
692
692
|
}
|
693
|
-
return this;
|
694
693
|
}
|
695
694
|
doSave ({goBack,data,action}){
|
696
695
|
const cb = ()=>{
|
@@ -774,7 +773,7 @@ export default class TableDataScreenComponent extends FormDataScreen{
|
|
774
773
|
notify('Données modifiée avec succès!!','success');
|
775
774
|
}
|
776
775
|
if(hasUpserted){
|
777
|
-
this.
|
776
|
+
this.reloadCurrentData(savedData,closePreloader);
|
778
777
|
}
|
779
778
|
closePreloader();
|
780
779
|
}).catch((e)=>{
|