Skip to content

Commit 482e8b1

Browse files
committed
fix: check for data field existense
1 parent 6b94b67 commit 482e8b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/store/reducers/query/streamingReducers.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ export const setStreamQueryResponse = (
5656
}
5757

5858
if ('stats' in chunk) {
59+
if (!state.result.data) {
60+
state.result.data = prepareQueryData(null);
61+
}
62+
5963
state.result.data.stats = chunk.stats;
6064
}
6165

0 commit comments

Comments
 (0)