Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix: hook handling error

DarkPhoenix2704c62a3b9d1a9d
diff --git a/packages/nocodb/src/services/hook-handler.service.ts b/packages/nocodb/src/services/hook-handler.service.ts
index 0c4be8f165..8cfc20e59d 100644
--- a/packages/nocodb/src/services/hook-handler.service.ts
+++ b/packages/nocodb/src/services/hook-handler.service.ts
@@ -43,6 +43,7 @@ export class HookHandlerService implements OnModuleInit, OnModuleDestroy {
if (
// [DEPRECATED]: v2 support for bulkInsert
(hookName === 'after.insert' || hookName === 'after.bulkInsert') &&
+ view &&
view.type === ViewTypes.FORM
) {
try {