mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
Fixed null status code issue for Google sheets plugin (#3026)
This commit is contained in:
parent
84c10583d9
commit
4b9f49eb41
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ export default class GooglesheetsQueryService implements QueryService {
|
|||
} catch (error) {
|
||||
console.log(error.response);
|
||||
|
||||
if (error.response.statusCode === 401) {
|
||||
if (error?.response?.statusCode === 401) {
|
||||
throw new OAuthUnauthorizedClientError('Query could not be completed', error.message, { ...error });
|
||||
}
|
||||
throw new QueryError('Query could not be completed', error.message, {});
|
||||
|
|
|
|||
Loading…
Reference in a new issue