From 78e7c7a9da96a293262cea5304509261ad10020c Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 14 May 2024 15:04:24 +0100 Subject: [PATCH] fix(Mattermost Node): Fix issue when fetching reactions (#9375) --- .../nodes/Mattermost/v1/actions/reaction/getAll/execute.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/nodes-base/nodes/Mattermost/v1/actions/reaction/getAll/execute.ts b/packages/nodes-base/nodes/Mattermost/v1/actions/reaction/getAll/execute.ts index ae85f76b0e6ec..ca81e76c1f987 100644 --- a/packages/nodes-base/nodes/Mattermost/v1/actions/reaction/getAll/execute.ts +++ b/packages/nodes-base/nodes/Mattermost/v1/actions/reaction/getAll/execute.ts @@ -15,6 +15,9 @@ export async function getAll( const body = {} as IDataObject; let responseData = await apiRequest.call(this, requestMethod, endpoint, body, qs); + if (responseData === null) { + return []; + } if (limit > 0) { responseData = responseData.slice(0, limit); }