Make task time estimate optional
close #38 Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
@@ -625,7 +625,6 @@ function ControlOverviewPageContent({
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
// Convert the time estimate components to ISO 8601 format
|
||||
const isoTimeEstimate = convertToISODuration();
|
||||
|
||||
@@ -636,7 +635,7 @@ function ControlOverviewPageContent({
|
||||
controlId: data.control.id,
|
||||
name: newTaskName,
|
||||
description: newTaskDescription,
|
||||
timeEstimate: isoTimeEstimate,
|
||||
timeEstimate: isoTimeEstimate === "" ? null : isoTimeEstimate,
|
||||
},
|
||||
},
|
||||
onCompleted: () => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @generated SignedSource<<f972be1746bd5bb9d5100845096188f8>>
|
||||
* @generated SignedSource<<318d80720efe2f6e610353e3a640d786>>
|
||||
* @lightSyntaxTransform
|
||||
* @nogrep
|
||||
*/
|
||||
@@ -15,7 +15,7 @@ export type CreateTaskInput = {
|
||||
controlId: string;
|
||||
description: string;
|
||||
name: string;
|
||||
timeEstimate: any;
|
||||
timeEstimate?: any | null | undefined;
|
||||
};
|
||||
export type ControlOverviewPageCreateTaskMutation$variables = {
|
||||
connections: ReadonlyArray<string>;
|
||||
@@ -34,7 +34,7 @@ export type ControlOverviewPageCreateTaskMutation$data = {
|
||||
readonly id: string;
|
||||
readonly name: string;
|
||||
readonly state: TaskState;
|
||||
readonly timeEstimate: any;
|
||||
readonly timeEstimate: any | null | undefined;
|
||||
readonly version: number;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @generated SignedSource<<84b34aa7e582728a8386d1fe1ef3fb58>>
|
||||
* @generated SignedSource<<084485ae03f7089bfdee310d631b01eb>>
|
||||
* @lightSyntaxTransform
|
||||
* @nogrep
|
||||
*/
|
||||
@@ -50,7 +50,7 @@ export type ControlOverviewPageQuery$data = {
|
||||
readonly id: string;
|
||||
readonly name: string;
|
||||
readonly state: TaskState;
|
||||
readonly timeEstimate: any;
|
||||
readonly timeEstimate: any | null | undefined;
|
||||
readonly version: number;
|
||||
};
|
||||
}>;
|
||||
|
||||
Reference in New Issue
Block a user