FileSystemConfiguration: Remove redundant dragging state changes

This is covered by onDragEnd, which always gets called when onDrop gets
called.
This commit is contained in:
Sanne Raymaekers 2022-04-01 15:55:44 +02:00 committed by jkozol
parent 7d6ede8dc6
commit 787e1ba5ce

View file

@ -175,12 +175,6 @@ const FileSystemConfiguration = ({ ...props }) => {
const onDrop = evt => {
if (isValidDrop(evt)) {
setItemOrder(tempItemOrder);
} else {
evt.currentTarget.classList.remove(styles.modifiers.ghostRow);
evt.currentTarget.setAttribute('aria-pressed', 'false');
setDraggedItemId(null);
setDraggingToItemIndex(null);
setIsDragging(false);
}
};