diff --git a/packages/nocodb/src/helpers/populateSamplePayload.ts b/packages/nocodb/src/helpers/populateSamplePayload.ts index 16b1d29616..81459273ab 100644 --- a/packages/nocodb/src/helpers/populateSamplePayload.ts +++ b/packages/nocodb/src/helpers/populateSamplePayload.ts @@ -77,8 +77,6 @@ export async function populateSamplePayloadV2( data: { table_id: model.id, table_name: model.title, - view_id: model.views[0].id, - view_name: model.views[0].title, }, }; diff --git a/packages/nocodb/src/services/hooks.service.ts b/packages/nocodb/src/services/hooks.service.ts index 1bbb381a74..fc75923a4a 100644 --- a/packages/nocodb/src/services/hooks.service.ts +++ b/packages/nocodb/src/services/hooks.service.ts @@ -225,7 +225,7 @@ export class HooksService { model: model, view: null, prevData: null, - newData: data, + newData: data.rows, user: user, testFilters: (hook as any)?.filters, throwErrorOnFailure: true,