7383-testToMaster #370

Merged
alexm merged 365 commits from 7383-testToMaster into master 2024-05-14 05:46:56 +00:00
1 changed files with 5 additions and 5 deletions
Showing only changes of commit 1fc6eed1d5 - Show all commits

View File

@ -355,11 +355,11 @@ const getMailStates = async (date) => {
};
const showWorkerTimeForm = (propValue, formType) => {
if (formType === 'edit') {
workerTimeFormProps.entryId = propValue;
} else {
workerTimeFormProps.dated = propValue;
}
const isEditForm = formType === 'edit';
workerTimeFormProps.entryId = isEditForm ? propValue : null;
workerTimeFormProps.dated = isEditForm ? null : propValue;
workerTimeFormDialogRef.value.show();
};