Fix optional empty value update
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
@@ -188,8 +188,8 @@ export const useUpdateAudit = () => {
|
||||
return (input: {
|
||||
id: string;
|
||||
name?: string;
|
||||
validFrom?: string;
|
||||
validUntil?: string;
|
||||
validFrom?: string | null;
|
||||
validUntil?: string | null;
|
||||
state?: string;
|
||||
}) => {
|
||||
if (!input.id) {
|
||||
|
||||
@@ -189,7 +189,7 @@ export const useUpdateContinualImprovement = () => {
|
||||
description?: string;
|
||||
source?: string;
|
||||
ownerId?: string;
|
||||
targetDate?: string;
|
||||
targetDate?: string | null;
|
||||
status?: string;
|
||||
priority?: string;
|
||||
}) => {
|
||||
|
||||
@@ -222,12 +222,12 @@ export const useUpdateNonconformity = () => {
|
||||
id: string;
|
||||
referenceId?: string;
|
||||
description?: string;
|
||||
dateIdentified?: string;
|
||||
dateIdentified?: string | null;
|
||||
rootCause?: string;
|
||||
correctiveAction?: string;
|
||||
ownerId?: string;
|
||||
auditId?: string;
|
||||
dueDate?: string;
|
||||
dueDate?: string | null;
|
||||
status?: string;
|
||||
effectivenessCheck?: string;
|
||||
}) => {
|
||||
|
||||
@@ -195,8 +195,8 @@ export const useUpdateObligation = () => {
|
||||
actionsToBeImplemented?: string;
|
||||
regulator?: string;
|
||||
ownerId?: string;
|
||||
lastReviewDate?: string;
|
||||
dueDate?: string;
|
||||
lastReviewDate?: string | null;
|
||||
dueDate?: string | null;
|
||||
status?: string;
|
||||
}) => {
|
||||
if (!input.id) {
|
||||
|
||||
Reference in New Issue
Block a user