File tree 1 file changed +4
-3
lines changed
src/components/BrowserCell
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,8 @@ export default class BrowserCell extends Component {
68
68
this . props . appId ,
69
69
this . props . value . className
70
70
) ;
71
- let dataValue = this . props . value . id ;
71
+ let value = this . props . value ;
72
+ let dataValue = this . props . value . id || this . props . value . objectId ;
72
73
if ( defaultPointerKey !== 'objectId' ) {
73
74
dataValue = this . props . value . get ( defaultPointerKey ) ;
74
75
if ( dataValue && typeof dataValue === 'object' ) {
@@ -94,13 +95,13 @@ export default class BrowserCell extends Component {
94
95
if ( this . props . value && this . props . value . __type ) {
95
96
const object = new Parse . Object ( this . props . value . className ) ;
96
97
object . id = this . props . value . objectId ;
97
- this . props . value = object ;
98
+ value = object ;
98
99
}
99
100
100
101
content = this . props . onPointerClick ? (
101
102
< Pill
102
103
value = { dataValue }
103
- onClick = { this . props . onPointerClick . bind ( undefined , this . props . value ) }
104
+ onClick = { this . props . onPointerClick . bind ( undefined , value ) }
104
105
followClick = { true }
105
106
shrinkablePill
106
107
/>
You can’t perform that action at this time.
0 commit comments