Skip to content

Commit

Permalink
correcting custom object reference to use canonical identifier (segme…
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-ayoub-segment authored Nov 26, 2024
1 parent b31888c commit bb253f2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ async function dynamicReadEventNames(request: RequestClient): Promise<DynamicFie
async function dynamicReadObjectTypes(request: RequestClient): Promise<DynamicFieldResponse> {
interface ResultItem {
labels: { singular: string; plural: string }
name: string
fullyQualifiedName: string
}

interface ResponseType {
Expand All @@ -96,7 +96,7 @@ async function dynamicReadObjectTypes(request: RequestClient): Promise<DynamicFi
})
const choices = response.data.results.map((schema) => ({
label: `${schema.labels.plural} (Custom)`,
value: schema.name
value: schema.fullyQualifiedName
}))
return {
choices: [...choices, ...defaultChoices].sort((a, b) =>
Expand Down

0 comments on commit bb253f2

Please sign in to comment.