Skip to content

Commit 2cc58b0

Browse files
Update components/attio/actions/get-record/get-record.mjs
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent ee5da0c commit 2cc58b0

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

components/attio/actions/get-record/get-record.mjs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,8 @@ export default {
2323
propDefinition: [
2424
attio,
2525
"recordId",
26-
() => ({
27-
targetObject: constants.TARGET_OBJECT.PEOPLE,
28-
mapper: ({
29-
id: { record_id: value },
30-
values: { name },
31-
}) => ({
32-
value,
33-
label: name[0]?.full_name,
34-
}),
26+
(c) => ({
27+
targetObject: c.objectId,
3528
}),
3629
],
3730
},

0 commit comments

Comments
 (0)