refac/fix: kb image upload handling
This commit is contained in:
1 parent
e986488ab5
commit
f524a6a8e7
3 files changed
+16
-7
No files matched your search
@@ -63,6 +63,10 @@ export const uploadFile = async (token: string, file: File, metadata?: object |
|
||||
console.error(data.error);
|
||||
res.error = data.error;
|
||||
}
|
||||
|
||||
if (res?.data) {
|
||||
res.data = data;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user