fix presentation downloadable change

This commit is contained in:
Ramón Souza 2022-02-24 19:33:44 +00:00
parent 68e70b0239
commit fee6077d29

View File

@ -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) {