[fix-issue-15843] - Best practice

This commit is contained in:
GuiLeme 2022-10-17 12:21:55 -03:00
parent cfae5f91e6
commit e1ec9fa13c

View File

@ -337,7 +337,7 @@ class PresentationUploader extends Component {
shouldUpdateState = true;
const propsDiffs = propPresentations.filter(p =>
!prevPropPresentations.some(presentation => p.id === presentation.id
|| p.temporaryPresentationId === presentation.temporaryPresentationId))
|| p.temporaryPresentationId === presentation.temporaryPresentationId));
propsDiffs.forEach(p => {
const index = presState.findIndex(pres => {