diff --git a/packages/nocodb/src/lib/services/views/galleryView.svc.ts b/packages/nocodb/src/lib/services/views/galleryView.svc.ts index b6ecb94a8a..f926a32abc 100644 --- a/packages/nocodb/src/lib/services/views/galleryView.svc.ts +++ b/packages/nocodb/src/lib/services/views/galleryView.svc.ts @@ -12,7 +12,10 @@ export async function galleryViewCreate(param: { tableId: string; gallery: ViewCreateReqType; }) { - validatePayload('swagger.json#/components/schemas/GalleryReq', param.gallery); + validatePayload( + 'swagger.json#/components/schemas/ViewCreateReq', + param.gallery + ); T.emit('evt', { evt_type: 'vtable:created', show_as: 'gallery' }); const view = await View.insert({