fix(bookin): corrections to only show the message on error vs the json
This commit is contained in:
@@ -289,11 +289,11 @@ export const labelingProcess = async ({
|
||||
"error",
|
||||
"labeling",
|
||||
"ocp",
|
||||
`There was an error booking in the label: ${book?.errors[0]?.message}`
|
||||
`There was an error booking in the label: ${book.data?.errors[0]?.message}`
|
||||
);
|
||||
return {
|
||||
success: false,
|
||||
message: `Error Booking in label: ${book?.errors[0]?.message}`,
|
||||
message: `Error Booking in label: ${book.data?.errors[0]?.message}`,
|
||||
data: book,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user