fix(seaTable Node): fix link items not showing in response (#4170)

This commit is contained in:
Jonathan Bennetts 2022-10-11 08:51:43 +01:00 committed by GitHub
parent 2e916b6564
commit 69684fc4f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -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;

View file

@ -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,