fix: Clickable area for docs in sidebar is obstructed (#2809)

closes #2808
This commit is contained in:
Tom Moor
2021-12-03 06:44:06 -08:00
committed by GitHub
parent d8d3e2bef2
commit 82bc6ef45b
3 changed files with 29 additions and 33 deletions

View File

@@ -26,9 +26,6 @@ function Collections() {
const isPreloaded = !!collections.orderedData.length;
const { t } = useTranslation();
const orderedCollections = collections.orderedData;
const [isDraggingAnyCollection, setIsDraggingAnyCollection] = React.useState(
false
);
React.useEffect(() => {
async function load() {
@@ -85,8 +82,6 @@ function Collections() {
activeDocument={documents.active}
prefetchDocument={documents.prefetchDocument}
canUpdate={policies.abilities(collection.id).update}
isDraggingAnyCollection={isDraggingAnyCollection}
onChangeDragging={setIsDraggingAnyCollection}
belowCollection={orderedCollections[index + 1]}
/>
))}