Skip to content

Commit

Permalink
fix(seaTable Node): fix link items not showing in response (n8n-io#4170)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joffcom authored Oct 11, 2022
1 parent 2c7cf2c commit bfcc2c0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/nodes-base/nodes/SeaTable/GenericFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ function rowFormatColumn(input: unknown): boolean | number | string | string[] |

if (Array.isArray(input) && input.every((i) => typeof i === 'string')) {
return input;
} else if (Array.isArray(input) && input.every((i) => typeof i === 'object')) {
const returnItems = [] as string[];
input.every((i) => returnItems.push(i.display_value));
return returnItems;
}

return null;
Expand Down
4 changes: 4 additions & 0 deletions packages/nodes-base/nodes/SeaTable/SeaTable.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,10 @@ export class SeaTable implements INodeType {

Object.assign(qs, filters, options);

if (qs.convert_link_id === false) {
delete qs.convert_link_id;
}

if (returnAll) {
responseData = await setableApiRequestAllItems.call(
this,
Expand Down

0 comments on commit bfcc2c0

Please sign in to comment.