mirror of
https://github.com/open-webui/open-webui
synced 2025-03-04 03:18:03 +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)
|
.setOAuthToken(token)
|
||||||
.setDeveloperKey(API_KEY)
|
.setDeveloperKey(API_KEY)
|
||||||
// Remove app ID setting as it's not needed and can cause 404 errors
|
// 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);
|
console.log('Picker callback received:', data);
|
||||||
if (data[google.picker.Response.ACTION] === google.picker.Action.PICKED) {
|
if (data[google.picker.Response.ACTION] === google.picker.Action.PICKED) {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user