mirror of
https://github.com/graphql-hive/console
synced 2026-05-24 09:38:26 +00:00
increase operation size from 5k to 10k characters, show error message in toast (#5491)
This commit is contained in:
parent
f40d572154
commit
5f5250f940
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue