Skip to content

Commit 32dee8e

Browse files
Merge remote-tracking branch 'origin/main'
2 parents c909b64 + 5164955 commit 32dee8e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/common/field/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class FunctionField(serializers.Field):
2727

2828
def to_internal_value(self, data):
2929
if not callable(data):
30-
self.fail('不是一個函數', value=data)
30+
self.fail('不是一个函數', value=data)
3131
return data
3232

3333
def to_representation(self, value):

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)