Skip to content

Commit 602b91d

Browse files
Revert "fix: google drive showing connected even on abort action (#12040)"
This reverts commit e15757f.
1 parent b822ed8 commit 602b91d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/bot-web-ui/src/stores/google-drive-store.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,9 @@ export default class GoogleDriveStore {
5151
client_id: this.client_id,
5252
scope: this.scope,
5353
callback: response => {
54-
if (response?.access_token && !response?.error) {
55-
this.access_token = response.access_token;
56-
this.updateSigninStatus(true);
57-
localStorage.setItem('google_access_token', response.access_token);
58-
}
54+
this.access_token = response.access_token;
55+
this.updateSigninStatus(true);
56+
localStorage.setItem('google_access_token', response.access_token);
5957
},
6058
});
6159
};

0 commit comments

Comments
 (0)