diff --git a/packages/x-data-grid-generator/src/services/prompt-resolver.ts b/packages/x-data-grid-generator/src/services/prompt-resolver.ts index 41d27eb60cc08..f393593b5f876 100644 --- a/packages/x-data-grid-generator/src/services/prompt-resolver.ts +++ b/packages/x-data-grid-generator/src/services/prompt-resolver.ts @@ -2,7 +2,7 @@ import { unstable_PromptResponse as PromptResponse } from '@mui/x-data-grid-prem import { mockPrompts } from '../constants/prompts'; export const mockPromptResolver = (_: string, query: string) => { - const resolved = mockPrompts.get(query); + const resolved = mockPrompts.get(query.toLowerCase().trim()); return new Promise((resolve, reject) => { setTimeout(() => {