Skip to content

Commit

Permalink
Fixed null status code issue for Google sheets plugin (ToolJet#3026)
Browse files Browse the repository at this point in the history
  • Loading branch information
shah21 authored May 11, 2022
1 parent 84c1058 commit 4b9f49e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/packages/googlesheets/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, {});
Expand Down

0 comments on commit 4b9f49e

Please sign in to comment.