Time Ticket displays current signed in employee
This commit is contained in:
@@ -24,10 +24,7 @@ const mapStateToProps = createStructuredSelector({
|
||||
export function EmployeeClockedInList({ currentEmployee, isRefresh }) {
|
||||
const [refreshKey, setRefreshKey] = useState(isRefresh);
|
||||
const [jobData, setJobData] = useState(data);
|
||||
console.info(
|
||||
"EmployeeClockedInList, QUERY_ACTIVE_TIME_TICKETS called.",
|
||||
currentEmployee
|
||||
);
|
||||
// console.info("EmployeeClockedInList, QUERY_ACTIVE_TIME_TICKETS called.",currentEmployee);
|
||||
|
||||
// console.info(
|
||||
// "EmployeeClockedInList, isRefresh :",
|
||||
@@ -42,6 +39,9 @@ export function EmployeeClockedInList({ currentEmployee, isRefresh }) {
|
||||
// console.log("teste: ", result);
|
||||
// }
|
||||
// fetchData();
|
||||
if(isRefresh){
|
||||
refetch();
|
||||
}
|
||||
console.log("useEffect: ", isRefresh);
|
||||
// setRefreshKey(isRefresh);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user