remove regularization method and created new component
This commit is contained in:
parent
1483cab13f
commit
6a6f0356bc
@ -33,7 +33,7 @@ const AttendancePage = () => {
|
||||
const dispatch = useDispatch();
|
||||
|
||||
const [formData, setFormData] = useState({
|
||||
time: "",
|
||||
markTime: "",
|
||||
description: "",
|
||||
date: new Date().toLocaleDateString(),
|
||||
});
|
||||
@ -69,7 +69,9 @@ const AttendancePage = () => {
|
||||
};
|
||||
|
||||
|
||||
const handleSubmit = ( formData ) =>{
|
||||
const handleSubmit = ( formData ) =>
|
||||
{
|
||||
debugger
|
||||
dispatch( markCurrentAttendance( formData ) ).then( ( action ) =>
|
||||
{
|
||||
const updatedAttendance = attendances.map(item =>
|
||||
@ -133,7 +135,7 @@ const AttendancePage = () => {
|
||||
id="DataTables_Table_0_length"
|
||||
>
|
||||
{
|
||||
((loginUser && loginUser?.projects.length > 1) ) && (<label>
|
||||
((loginUser && loginUser?.projects?.length > 1) ) && (<label>
|
||||
<select
|
||||
name="DataTables_Table_0_length"
|
||||
aria-controls="DataTables_Table_0"
|
||||
|
Loading…
x
Reference in New Issue
Block a user