mirror of
https://github.com/open-webui/open-webui
synced 2025-03-03 10:52:09 +00:00
fix: Make Google Drive picker callback async to resolve await usage
This commit is contained in:
parent
77490e3392
commit
ae589bf604
@ -108,7 +108,7 @@ export const createPicker = () => {
|
||||
.setOAuthToken(token)
|
||||
.setDeveloperKey(API_KEY)
|
||||
// Remove app ID setting as it's not needed and can cause 404 errors
|
||||
.setCallback((data: any) => {
|
||||
.setCallback(async (data: any) => {
|
||||
console.log('Picker callback received:', data);
|
||||
if (data[google.picker.Response.ACTION] === google.picker.Action.PICKED) {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user