Skip to content

Commit

Permalink
fix: Dashboard crashes when adding a row with modal in a class that c…
Browse files Browse the repository at this point in the history
…ontains a pointer to another class that contains an array of pointers (#2416)
  • Loading branch information
TravisHeaver authored May 27, 2023
1 parent 1fbcee7 commit 286269f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/BrowserCell/BrowserCell.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default class BrowserCell extends Component {
this.copyableValue = this.props.value.id;
}
else if (this.props.type === 'Array') {
if ( this.props.value[0] && typeof this.props.value[0] === 'object' && this.props.value[0].__type === 'Pointer' ) {
if ( this.props.value[0] && typeof this.props.value[0] === 'object' && this.props.value[0].__type === 'Pointer' && typeof this.props.onPointerClick === 'function' ) {
const array = [];
this.props.value.map( (v, i) => {
if ( typeof v !== 'object' || v.__type !== 'Pointer' ) {
Expand Down

0 comments on commit 286269f

Please sign in to comment.