Skip to content

Commit 725469d

Browse files
fix: add root cache existence check when returning data (#7873)
1 parent 5283bd8 commit 725469d

File tree

1 file changed

+1
-1
lines changed
  • vaadin-grid-flow-parent/vaadin-grid-flow/src/main/resources/META-INF/resources/frontend

1 file changed

+1
-1
lines changed

vaadin-grid-flow-parent/vaadin-grid-flow/src/main/resources/META-INF/resources/frontend/gridConnector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@
931931
if ((cache[root] && cache[root][page]) || page < lastRequestedRange[0] || +page > lastRequestedRangeEnd) {
932932
delete rootPageCallbacks[page];
933933

934-
if (cache[root][page]) {
934+
if (cache[root] && cache[root][page]) {
935935
// Cached data is available, resolve the callback
936936
callback(cache[root][page]);
937937
} else {

0 commit comments

Comments
 (0)