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 and netroy committed May 16, 2024
1 parent a515686 commit c19d4aa
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 c19d4aa

Please sign in to comment.