We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 741fb7e commit 87dbb74Copy full SHA for 87dbb74
packages/@react-spectrum/card/src/GridLayout.tsx
@@ -256,7 +256,7 @@ export class GridLayout<T> extends BaseLayout<T> {
256
}
257
258
let row = this.collection.rows[indexRowBelow];
259
- return getFirstItem(getChildNodes(row, this.collection))?.key;
+ return row ? getFirstItem(getChildNodes(row, this.collection))?.key : null;
260
261
262
getKeyAbove(key: Key) {
@@ -271,6 +271,6 @@ export class GridLayout<T> extends BaseLayout<T> {
271
272
273
let row = this.collection.rows[indexRowAbove];
274
275
276
0 commit comments