diff --git a/web/app/components/plugins/marketplace/types.ts b/web/app/components/plugins/marketplace/types.ts index e6eb446ede..dd5df48ed0 100644 --- a/web/app/components/plugins/marketplace/types.ts +++ b/web/app/components/plugins/marketplace/types.ts @@ -118,6 +118,7 @@ export type BatchAddTemplatesToCollectionRequest = { // Creator types export type Creator = { + id?: string email: string name: string display_name: string diff --git a/web/app/components/plugins/marketplace/utils.ts b/web/app/components/plugins/marketplace/utils.ts index 7f78240588..938608c4f5 100644 --- a/web/app/components/plugins/marketplace/utils.ts +++ b/web/app/components/plugins/marketplace/utils.ts @@ -70,6 +70,10 @@ export const getCreatorAvatarUrl = (uniqueHandle: string) => { return `${MARKETPLACE_API_PREFIX}/creators/${uniqueHandle}/avatar` } +export const getOrganizationAvatarUrl = (id: string) => { + return `${MARKETPLACE_API_PREFIX}/organizations/${id}/avatar` +} + export const getFormattedPlugin = (bundle: Plugin): Plugin => { if (bundle.type === 'bundle') { return {