Skip to content

Commit f51003b

Browse files
committed
fix getArray in ResultWrapper
1 parent 46eeeb9 commit f51003b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/cubejs-backend-native/js/ResultWrapper.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ export class ResultWrapper {
7272

7373
private getArray(): ResultRow[] {
7474
if (!this.cache) {
75-
this.cache = getCubestoreResult(this.nativeReference);
75+
if (this.isNative) {
76+
this.cache = getCubestoreResult(this.nativeReference);
77+
} else {
78+
this.cache = this.jsResult;
79+
}
7680
this.cached = true;
7781
}
7882
return this.cache;

0 commit comments

Comments
 (0)