mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(Mattermost Node): Fix issue when fetching reactions (#9375)
This commit is contained in:
parent
82c8801f25
commit
78e7c7a9da
|
@ -15,6 +15,9 @@ export async function getAll(
|
||||||
const body = {} as IDataObject;
|
const body = {} as IDataObject;
|
||||||
|
|
||||||
let responseData = await apiRequest.call(this, requestMethod, endpoint, body, qs);
|
let responseData = await apiRequest.call(this, requestMethod, endpoint, body, qs);
|
||||||
|
if (responseData === null) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
if (limit > 0) {
|
if (limit > 0) {
|
||||||
responseData = responseData.slice(0, limit);
|
responseData = responseData.slice(0, limit);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue