Skip to content

Commit 286269f

Browse files
authored
fix: Dashboard crashes when adding a row with modal in a class that contains a pointer to another class that contains an array of pointers (#2416)
1 parent 1fbcee7 commit 286269f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/BrowserCell/BrowserCell.react.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export default class BrowserCell extends Component {
9292
this.copyableValue = this.props.value.id;
9393
}
9494
else if (this.props.type === 'Array') {
95-
if ( this.props.value[0] && typeof this.props.value[0] === 'object' && this.props.value[0].__type === 'Pointer' ) {
95+
if ( this.props.value[0] && typeof this.props.value[0] === 'object' && this.props.value[0].__type === 'Pointer' && typeof this.props.onPointerClick === 'function' ) {
9696
const array = [];
9797
this.props.value.map( (v, i) => {
9898
if ( typeof v !== 'object' || v.__type !== 'Pointer' ) {

0 commit comments

Comments
 (0)