Refactoring.
This commit is contained in:
parent
8b3247435d
commit
a794543e5b
@ -310,11 +310,9 @@ const FilesSelector = ({
|
||||
|
||||
if (index !== maxLength && currentFolderIndex !== -1) {
|
||||
foundParentId = true;
|
||||
!isSelectedParentFolder && setIsSelectedParentFolder(true);
|
||||
}
|
||||
|
||||
if (foundParentId && !isSelectedParentFolder)
|
||||
setIsSelectedParentFolder(true);
|
||||
|
||||
if (index === maxLength && !foundParentId && isSelectedParentFolder)
|
||||
setIsSelectedParentFolder(false);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user