Skip to content

Commit

Permalink
fix(FileMaker Node): Prevent erroring on zero fields loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov committed Dec 7, 2023
1 parent 42e828d commit 459012b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/nodes-base/nodes/FileMaker/FileMaker.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,8 @@ export class FileMaker implements INodeType {

const fields = await getFields.call(this);

if (!Array.isArray(fields)) return [];

for (const field of fields) {
returnData.push({
name: field.name,
Expand Down

0 comments on commit 459012b

Please # to comment.