mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-31 03:18:43 -06:00
tagshow: correctly union matching photos
This commit is contained in:
@@ -30,11 +30,14 @@ var SlideShow = React.createClass({
|
||||
render: function() {
|
||||
this.props.ds
|
||||
.then(head => head.get('value').deref())
|
||||
.then(tags => Promise.all(
|
||||
.then(tags => {
|
||||
return Promise.all(
|
||||
tags.filter((v, t) => this.props.tags.has(t))
|
||||
.valueSeq()
|
||||
.map(ref => ref.deref())))
|
||||
.then(sets => this.setState({photos: Immutable.Set(...sets)}));
|
||||
.map(ref => ref.deref()))
|
||||
}).then(sets => {
|
||||
this.setState({photos: Immutable.Set().union(...sets)})
|
||||
});
|
||||
|
||||
return <div style={containerStyle}>{
|
||||
this.state.photos
|
||||
|
||||
Reference in New Issue
Block a user