Просмотр исходного кода

feat: clean chunk content after add (#19785)

tags/1.4.1
CorrectRoad 5 месяцев назад
Родитель
Сommit
405c4d51f0
Аккаунт пользователя с таким Email не найден

+ 1
- 0
web/app/components/datasets/documents/detail/completed/new-child-segment.tsx Просмотреть файл

@@ -91,6 +91,7 @@ const NewChildSegmentModal: FC<NewChildSegmentModalProps> = ({
customComponent: isFullDocMode && CustomButton,
})
handleCancel('add')
setContent('')
if (isFullDocMode) {
refreshTimer.current = setTimeout(() => {
onSave()

+ 3
- 0
web/app/components/datasets/documents/detail/new-segment.tsx Просмотреть файл

@@ -118,6 +118,9 @@ const NewSegmentModal: FC<NewSegmentModalProps> = ({
customComponent: CustomButton,
})
handleCancel('add')
setQuestion('')
setAnswer('')
setKeywords([])
refreshTimer.current = setTimeout(() => {
onSave()
}, 3000)

Загрузка…
Отмена
Сохранить