close hovers deeper in the upload logic

pull/3537/head
Ryan 2024-10-18 13:15:27 -04:00
parent 60e4cb08c8
commit f557bc7508
1 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,4 @@
import { useLayoutStore } from "@/stores/layout";
import { useUploadStore } from "@/stores/upload";
import url from "@/utils/url";
@ -126,6 +127,9 @@ export function handleFiles(
overwrite = false
) {
const uploadStore = useUploadStore();
const layoutStore = useLayoutStore();
layoutStore.closeHovers();
for (const file of files) {
const id = uploadStore.id;