increase operation size from 5k to 10k characters, show error message in toast (#5491)

This commit is contained in:
Dimitri POSTOLOV 2024-08-21 16:24:06 +02:00 committed by GitHub
parent f40d572154
commit 5f5250f940
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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 {