fix(Spotify Node): Fix issue with null values breaking the response (#12080)

This commit is contained in:
Jon
2025-01-09 14:42:27 +00:00
committed by GitHub
parent 1d86c4fdd2
commit a56a46259d
7 changed files with 7223 additions and 4 deletions

View File

@@ -1308,6 +1308,10 @@ export class Spotify implements INodeType {
);
}
// Remove null values from the response
if (operation === 'getUserPlaylists') {
responseData = responseData.filter((item: IDataObject) => item !== null);
}
const executionData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray(responseData as IDataObject[]),
{ itemData: { item: i } },