Skip to content

Commit

Permalink
fix(client-core): apiToken nullable check
Browse files Browse the repository at this point in the history
  • Loading branch information
vasilev-alex committed Jan 25, 2022
1 parent 4d838d7 commit 3f93f68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cubejs-client-core/src/index.js
Expand Up @@ -24,7 +24,7 @@ function mutexPromise(promise) {

class CubejsApi {
constructor(apiToken, options) {
if (typeof apiToken === 'object') {
if (apiToken !== null && !Array.isArray(apiToken) && typeof apiToken === 'object') {
options = apiToken;
apiToken = undefined;
}
Expand Down

0 comments on commit 3f93f68

Please sign in to comment.