fix: org avatar not show

This commit is contained in:
Joel
2026-02-12 16:12:25 +08:00
parent 791289dcf5
commit ad1ebd9bbc
2 changed files with 5 additions and 0 deletions

View File

@ -118,6 +118,7 @@ export type BatchAddTemplatesToCollectionRequest = {
// Creator types
export type Creator = {
id?: string
email: string
name: string
display_name: string

View File

@ -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 {