[FA-misc] Fix issues with novel imports
This commit is contained in:
@@ -39,7 +39,13 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if (result.data?.importNovel?.novelUpdateRequestedEvent) {
|
||||
const mutationErrors = result.data?.importNovel?.errors;
|
||||
if (mutationErrors && mutationErrors.length > 0) {
|
||||
error = mutationErrors[0].message;
|
||||
return;
|
||||
}
|
||||
|
||||
if (result.data?.importNovel?.importNovelResult) {
|
||||
success = true;
|
||||
setTimeout(() => {
|
||||
handleClose();
|
||||
|
||||
Reference in New Issue
Block a user