diff --git a/apps/common/field/common.py b/apps/common/field/common.py index a97469891ce..3d6c95f1177 100644 --- a/apps/common/field/common.py +++ b/apps/common/field/common.py @@ -27,7 +27,7 @@ class FunctionField(serializers.Field): def to_internal_value(self, data): if not callable(data): - self.fail('不是一個函數', value=data) + self.fail('不是一个函數', value=data) return data def to_representation(self, value): diff --git a/ui/src/views/problem/component/RelateProblemDialog.vue b/ui/src/views/problem/component/RelateProblemDialog.vue index 36fc47d6259..0ac461bbb2d 100644 --- a/ui/src/views/problem/component/RelateProblemDialog.vue +++ b/ui/src/views/problem/component/RelateProblemDialog.vue @@ -172,7 +172,7 @@ function getDocument() { cloneDocumentList.value = res.data documentList.value = res.data currentDocument.value = cloneDocumentList.value?.length > 0 ? cloneDocumentList.value[0].id : '' - getParagraphList(currentDocument.value) + currentDocument.value && getParagraphList(currentDocument.value) }) }