mirror of
https://github.com/langgenius/dify.git
synced 2026-04-28 06:28:05 +08:00
merge main
This commit is contained in:
@ -41,7 +41,7 @@ const ChunkStructure = ({
|
||||
}}
|
||||
>
|
||||
{
|
||||
chunkStructure && (
|
||||
!!chunkStructure && (
|
||||
<OptionCard
|
||||
{...optionMap[chunkStructure]}
|
||||
selectedId={chunkStructure}
|
||||
|
||||
@ -100,7 +100,7 @@ const OptionCard = memo(({
|
||||
>
|
||||
{effectElement}
|
||||
{
|
||||
icon && (
|
||||
!!icon && (
|
||||
<div className="mr-1 flex h-[18px] w-[18px] shrink-0 items-center justify-center">
|
||||
{typeof icon === 'function' ? icon(isActive) : icon}
|
||||
</div>
|
||||
@ -139,7 +139,7 @@ const OptionCard = memo(({
|
||||
</div>
|
||||
</div>
|
||||
{
|
||||
children && isActive && (
|
||||
!!(children && isActive) && (
|
||||
<div className="relative rounded-b-xl bg-components-panel-bg p-3">
|
||||
<ArrowShape className="absolute left-[14px] top-[-11px] h-4 w-4 text-components-panel-bg" />
|
||||
{children}
|
||||
|
||||
@ -120,7 +120,7 @@ const Panel: FC<NodePanelProps<KnowledgeBaseNodeType>> = ({
|
||||
/>
|
||||
</Group>
|
||||
{
|
||||
data.chunk_structure && (
|
||||
!!data.chunk_structure && (
|
||||
<>
|
||||
<BoxGroupField
|
||||
boxGroupProps={{
|
||||
|
||||
Reference in New Issue
Block a user