diff --git a/packages/services/api/src/modules/collection/resolvers.ts b/packages/services/api/src/modules/collection/resolvers.ts index a33f4b90d..ed3f89710 100644 --- a/packages/services/api/src/modules/collection/resolvers.ts +++ b/packages/services/api/src/modules/collection/resolvers.ts @@ -9,7 +9,7 @@ import { Storage } from '../shared/providers/storage'; import { CollectionModule } from './__generated__/types'; import { CollectionProvider } from './providers/collection.provider'; -const MAX_INPUT_LENGTH = 5000; +const MAX_INPUT_LENGTH = 10_000; // The following validates the length and the validity of the JSON object incoming as string. const inputObjectSchema = zod diff --git a/packages/web/app/src/components/target/laboratory/create-operation-modal.tsx b/packages/web/app/src/components/target/laboratory/create-operation-modal.tsx index 62510c96e..58ce89249 100644 --- a/packages/web/app/src/components/target/laboratory/create-operation-modal.tsx +++ b/packages/web/app/src/components/target/laboratory/create-operation-modal.tsx @@ -138,8 +138,8 @@ export function CreateOperationModal(props: { if (error) { toast({ - title: 'Error', - description: 'Failed to create operation', + title: 'Failed to create operation', + description: error.message, variant: 'destructive', }); } else {