@@ -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={[
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user