fix: add missed modifications of <AppIcon /> (#7512)

This commit is contained in:
Hash Brown 2024-08-22 13:32:59 +08:00 • committed by GitHub
commit 60ef7ba855
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 20 additions and 8 deletions

View file

@ -24,6 +24,7 @@ import { LeftIndent02 } from '@/app/components/base/icons/src/vender/line/editor
import { FileText } from '@/app/components/base/icons/src/vender/line/files'
import WorkflowToolConfigureButton from '@/app/components/tools/workflow-tool/configure-button'
import type { InputVar } from '@/app/components/workflow/types'
import { appDefaultIconBackground } from '@/config'
export type AppPublisherProps = {
disabled?: boolean
@ -212,8 +213,8 @@ const AppPublisher = ({
detailNeedUpdate={!!toolPublished && published}
workflowAppId={appDetail?.id}
icon={{
content: appDetail?.icon,
background: appDetail?.icon_background,
content: (appDetail.icon_type === 'image' ? '🤖' : appDetail?.icon) || '🤖',
background: (appDetail.icon_type === 'image' ? appDefaultIconBackground : appDetail?.icon_background) || appDefaultIconBackground,
}}
name={appDetail?.name}
description={appDetail?.description}