Merge pull request #515 from medici/feat/tp-32780
add online check before stroring in db and remove all case details dependency
This commit is contained in:
@@ -197,12 +197,6 @@ const Widget: React.FC<IWidget> = (props) => {
|
||||
|
||||
const onErrorSubmit = (updatedCaseDetails: any) => {
|
||||
setIsSubmitting(false);
|
||||
dispatch(
|
||||
updateCaseDetail({
|
||||
caseKey: caseKey.current,
|
||||
updatedCaseDetails,
|
||||
})
|
||||
);
|
||||
};
|
||||
|
||||
const handleSubmitJourney = async (data: any, coords: Geolocation.GeoCoordinates) => {
|
||||
|
||||
@@ -80,7 +80,7 @@ const interactionsHandler = () => {
|
||||
}
|
||||
}
|
||||
})();
|
||||
}, [allCasesDetails, isOnline]);
|
||||
}, [isOnline]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!isOnline) {
|
||||
|
||||
Reference in New Issue
Block a user