Skip to content

Commit fea8402

Browse files
committed
fix load()
1 parent 3cc1a69 commit fea8402

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/cubejs-client-core/src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,10 @@ class CubeApi {
258258
const checkMutex = async () => {
259259
const requestInstance = await requestPromise;
260260

261-
if (options?.mutexObj?.[mutexKey] !== mutexValue) {
261+
if (options &&
262+
options.mutexObj &&
263+
options.mutexObj[mutexKey] !== mutexValue
264+
) {
262265
unsubscribed = true;
263266
if (requestInstance.unsubscribe) {
264267
await requestInstance.unsubscribe();

0 commit comments

Comments
 (0)