Merge pull request #14458 from ramonlsouza/issue-14440
fix: Cannot change presentation download permission twice
This commit is contained in:
commit
314e834a8f
@ -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