Skip to content

Commit 5164955

Browse files
Merge pull request #93 from 1Panel-dev/pr@main@fix-bugs
fix: 修复文档为空的情况#92
2 parents 3414349 + 29f804d commit 5164955

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/views/problem/component/RelateProblemDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ function getDocument() {
172172
cloneDocumentList.value = res.data
173173
documentList.value = res.data
174174
currentDocument.value = cloneDocumentList.value?.length > 0 ? cloneDocumentList.value[0].id : ''
175-
getParagraphList(currentDocument.value)
175+
currentDocument.value && getParagraphList(currentDocument.value)
176176
})
177177
}
178178

0 commit comments

Comments
 (0)