- Progress commit

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-03-28 12:30:14 -04:00
parent ae9e9f4b72
commit dc22b96bed
8 changed files with 250 additions and 66 deletions

View File

@@ -42,7 +42,7 @@ export function TaskUpsertModalComponent({
{label: t('tasks.date_presets.three_weeks'), value: dayjs().add(3, 'weeks')},
{label: t('tasks.date_presets.one_month'), value: dayjs().add(1, 'month')},
];
const clearRelations = () => {
form.setFieldsValue({
billid: null,
@@ -61,8 +61,8 @@ export function TaskUpsertModalComponent({
clearRelations();
};
if (!data || loading || error) return <LoadingSkeleton active/>;
if (loading || error) return <LoadingSkeleton active/>;
return (
<>
@@ -115,7 +115,7 @@ export function TaskUpsertModalComponent({
<Col span={24}>
<Form.Item
name="jobid"
// initialValue={selectedJobId}
initialValue={selectedJobId}
label={t("tasks.fields.jobid")}
rules={[
{