mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-15 10:15:55 +08:00
feat: clean chunk content after add (#19785)
This commit is contained in:
parent
3e30914e13
commit
405c4d51f0
@ -91,6 +91,7 @@ const NewChildSegmentModal: FC<NewChildSegmentModalProps> = ({
|
|||||||
customComponent: isFullDocMode && CustomButton,
|
customComponent: isFullDocMode && CustomButton,
|
||||||
})
|
})
|
||||||
handleCancel('add')
|
handleCancel('add')
|
||||||
|
setContent('')
|
||||||
if (isFullDocMode) {
|
if (isFullDocMode) {
|
||||||
refreshTimer.current = setTimeout(() => {
|
refreshTimer.current = setTimeout(() => {
|
||||||
onSave()
|
onSave()
|
||||||
|
@ -118,6 +118,9 @@ const NewSegmentModal: FC<NewSegmentModalProps> = ({
|
|||||||
customComponent: CustomButton,
|
customComponent: CustomButton,
|
||||||
})
|
})
|
||||||
handleCancel('add')
|
handleCancel('add')
|
||||||
|
setQuestion('')
|
||||||
|
setAnswer('')
|
||||||
|
setKeywords([])
|
||||||
refreshTimer.current = setTimeout(() => {
|
refreshTimer.current = setTimeout(() => {
|
||||||
onSave()
|
onSave()
|
||||||
}, 3000)
|
}, 3000)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user