This commit is contained in:
Jonathan Bennetts 2024-10-28 11:57:30 +00:00
parent 8ed9d1e90c
commit 41d770e9a6
No known key found for this signature in database

View file

@ -45,7 +45,7 @@ const properties: INodeProperties[] = [
name: 'rowId', name: 'rowId',
type: 'options', type: 'options',
description: description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>', 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
required: true, required: true,
typeOptions: { typeOptions: {
loadOptionsDependsOn: ['tableName'], loadOptionsDependsOn: ['tableName'],
@ -197,7 +197,9 @@ export async function execute(
// Remove duplicates based on "url", keeping the last one // Remove duplicates based on "url", keeping the last one
const uniqueAssets = Array.from( const uniqueAssets = Array.from(
// @ts-ignore // @ts-ignore
mergedArray.reduce((map, asset) => map.set(asset.url, asset), new Map()).values(), mergedArray
.reduce((map, asset) => map.set(asset.url, asset), new Map())
.values(),
); );
// Update the rowInput with the unique assets and store into body.row. // Update the rowInput with the unique assets and store into body.row.