Time Ticket displays current signed in employee

This commit is contained in:
jfrye122
2023-06-02 16:05:56 -04:00
parent cf24d49f9f
commit a185537c41
2 changed files with 50 additions and 82 deletions

View File

@@ -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);