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
parent 6f968bafb2
commit 60ef7ba855
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}