i did a stupid
This commit is contained in:
parent
06ae356c41
commit
d6e729b440
@ -30,7 +30,7 @@
|
|||||||
});
|
});
|
||||||
const json = await res.json();
|
const json = await res.json();
|
||||||
if (json.message) {
|
if (json.message) {
|
||||||
alert(message);
|
alert(json.message);
|
||||||
} else if (Array.isArray(json)) {
|
} else if (Array.isArray(json)) {
|
||||||
article.comments = json;
|
article.comments = json;
|
||||||
author = content = '';
|
author = content = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user