fix presentation downloadable change
This commit is contained in:
parent
68e70b0239
commit
fee6077d29
@ -301,12 +301,14 @@ class PresentationUploader extends Component {
|
||||
}
|
||||
});
|
||||
|
||||
this.setState({
|
||||
presentations: Object.values({
|
||||
...presentations,
|
||||
...propPresentations,
|
||||
}),
|
||||
});
|
||||
if (!_.isEqual(prevProps.presentations, propPresentations) || presentations.length === 0) {
|
||||
this.setState({
|
||||
presentations: Object.values({
|
||||
...presentations,
|
||||
...propPresentations,
|
||||
}),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (presentations.length > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user