mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-02-06 18:45:08 +08:00
fix: chunk editor allows update image only if chunk type is image (#12210)
### What problem does this PR solve? Disallow updating image on non-image chunk in chunk editor. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -168,6 +168,7 @@ const ChunkCreatingModal: React.FC<IModalProps<any> & kFProps> = ({
|
||||
/>
|
||||
)}
|
||||
|
||||
{isEditMode && form.getValues('doc_type_kwd') === 'image' && (
|
||||
<FormField
|
||||
control={form.control}
|
||||
name="image"
|
||||
@ -205,6 +206,7 @@ const ChunkCreatingModal: React.FC<IModalProps<any> & kFProps> = ({
|
||||
</FormItem>
|
||||
)}
|
||||
/>
|
||||
)}
|
||||
|
||||
<FormField
|
||||
control={form.control}
|
||||
|
||||
Reference in New Issue
Block a user