Skip to content

Commit 58dba76

Browse files
authored
fix copy-paste error for array of pointers (#429)
* fix copy-paste error for array of pointers * fix copyable value
1 parent 76760f5 commit 58dba76

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/BrowserCell/BrowserCell.react.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,13 @@ class BrowserCell extends Component {
9999
<Pill key={i} value={v.objectId} onClick={this.props.onPointerClick.bind(undefined, object)} followClick={true} />
100100
);
101101
});
102-
this.copyableValue = content = <ul>
102+
content = <ul>
103103
{ array.map( a => <li>{a}</li>) }
104104
</ul>
105105
if ( array.length > 1 ) {
106106
classes.push(styles.hasMore);
107107
}
108+
this.copyableValue = JSON.stringify(this.props.value);
108109
}
109110
else {
110111
this.copyableValue = content = JSON.stringify(this.props.value);

0 commit comments

Comments
 (0)