mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 00:48:04 +08:00
fix: org avatar not show
This commit is contained in:
@ -118,6 +118,7 @@ export type BatchAddTemplatesToCollectionRequest = {
|
||||
|
||||
// Creator types
|
||||
export type Creator = {
|
||||
id?: string
|
||||
email: string
|
||||
name: string
|
||||
display_name: string
|
||||
|
||||
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user