We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c909b64 + 5164955 commit 32dee8eCopy full SHA for 32dee8e
apps/common/field/common.py
@@ -27,7 +27,7 @@ class FunctionField(serializers.Field):
27
28
def to_internal_value(self, data):
29
if not callable(data):
30
- self.fail('不是一個函數', value=data)
+ self.fail('不是一个函數', value=data)
31
return data
32
33
def to_representation(self, value):
ui/src/views/problem/component/RelateProblemDialog.vue
@@ -172,7 +172,7 @@ function getDocument() {
172
cloneDocumentList.value = res.data
173
documentList.value = res.data
174
currentDocument.value = cloneDocumentList.value?.length > 0 ? cloneDocumentList.value[0].id : ''
175
- getParagraphList(currentDocument.value)
+ currentDocument.value && getParagraphList(currentDocument.value)
176
})
177
}
178
0 commit comments