Skip to content

Commit 108677a

Browse files
authored
Fix extra elements crash (codesandbox#3931)
1 parent d0620ba commit 108677a

File tree

1 file changed

+3
-3
lines changed
  • packages/app/src/app/pages/Dashboard/Content/SandboxGrid

1 file changed

+3
-3
lines changed

packages/app/src/app/pages/Dashboard/Content/SandboxGrid/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,11 +335,11 @@ class SandboxGridComponent extends React.Component<
335335
this.scrolling = isScrolling;
336336

337337
let index = rowIndex * this.columnCount + columnIndex;
338-
const { sandboxes } = this.props;
338+
const { sandboxes, ExtraElement } = this.props;
339339

340-
if (this.props.ExtraElement) {
340+
if (ExtraElement) {
341341
if (index === 0) {
342-
return <this.props.ExtraElement key="extra" style={style} />;
342+
return <ExtraElement key="extra" style={style} />;
343343
}
344344

345345
index--;

0 commit comments

Comments
 (0)