Skip to content

Commit

Permalink
fix(Mattermost Node): Fix issue when fetching reactions (#9375)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joffcom authored May 14, 2024
1 parent 82c8801 commit 78e7c7a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 78e7c7a

Please sign in to comment.