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.
1 parent d2ed930 commit 86e1fbdCopy full SHA for 86e1fbd
src/client/view/comments.svelte
@@ -36,11 +36,13 @@
36
37
async function GetComment() {
38
try {
39
- const { data } = await request({
+ const { data, msg } = await request({
40
url: D.serverURLs,
41
data: { type: 'GET_COMMENT', path: D.path, pageNo }
42
})
43
44
+ if (!data) throw new Error(msg)
45
+
46
counts = data.counts
47
pageCount = data.pageCount
48
comments = [...comments, ...data.comments]
src/client/view/main.svelte
@@ -54,7 +54,7 @@
54
}
55
56
function onCommentError() {
57
- onComment()
+ onComment({})
58
59
60
function wordLimitFn({ detail }) {
0 commit comments