fix: react dependencies
This commit is contained in:
parent
9114c0fa03
commit
3e5a367dba
|
@ -49,7 +49,7 @@ export function Login() {
|
|||
console.log('session expired')
|
||||
auth.logout()
|
||||
}
|
||||
}, [auth.jwt, data])
|
||||
}, [auth, data])
|
||||
|
||||
if(!auth.jwt) {
|
||||
return (
|
||||
|
|
|
@ -293,7 +293,7 @@ const HostOfferLookupTable = ({data_ro, data_rw, refetch_rw}: HostOfferLookupTab
|
|||
/** For now the easiest way to ensure the user can see if data was updated in the db is by calling `refetch_rw()`
|
||||
TODO: error handling **/
|
||||
await mutate(auth, {value, columnId, rowId}) && refetch_rw()
|
||||
}, [dataSource])
|
||||
}, [auth, refetch_rw])
|
||||
|
||||
const {i18n: {language}} = useTranslation()
|
||||
// @ts-ignore
|
||||
|
|
Loading…
Reference in New Issue