Browse Source

fix(nocodb): GalleryReq -> ViewCreateReq

pull/5269/head
Wing-Kam Wong 2 years ago
parent
commit
b4c277f1c3
  1. 5
      packages/nocodb/src/lib/services/views/galleryView.svc.ts

5
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({

Loading…
Cancel
Save