Skip to content

Commit

Permalink
Merge pull request #1145 from nrkno/fix/SOFIE-2895/ncsItem-slug-parsi…
Browse files Browse the repository at this point in the history
…ng-r50

Merge pull request #1116 from nrkno/fix/SOFIE-2895/ncsItem-slug-parsing
  • Loading branch information
jesperstarkar authored Feb 13, 2024
2 parents d2f3cef + 1eb8e3a commit db22290
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion meteor/client/ui/Shelf/ExternalFramePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,12 @@ export const ExternalFramePanel = withTranslation()(

const mosTypes = getMosTypes(MOS_DATA_IS_STRICT)

const name = mosItem.Slug
? mosTypes.mosString128.stringify(mosItem.Slug)
: mosItem.ObjectSlug
? mosTypes.mosString128.stringify(mosItem.ObjectSlug)
: ''

doUserAction(t, e, UserAction.INGEST_BUCKET_ADLIB, (e, ts) =>
MeteorCall.userAction.bucketAdlibImport(
e,
Expand All @@ -235,7 +241,7 @@ export const ExternalFramePanel = withTranslation()(
showStyleBaseId,
literal<IngestAdlib>({
externalId: mosItem.ObjectID ? mosTypes.mosString128.stringify(mosItem.ObjectID) : '',
name: mosItem.ObjectSlug ? mosTypes.mosString128.stringify(mosItem.ObjectSlug) : '',
name,
payloadType: 'MOS',
payload: stringifyMosObject(mosItem, MOS_DATA_IS_STRICT),
})
Expand Down

0 comments on commit db22290

Please sign in to comment.