fix known disappearing prompts

pull/3537/head
Ryan 2024-10-15 15:37:30 -04:00
parent 129a4fd39d
commit cba06b07b9
2 changed files with 1 additions and 3 deletions

View File

@ -48,8 +48,6 @@ const layoutStore = useLayoutStore();
// TODO: this is a copy of the same function in FileListing.vue
const uploadInput = (event: Event) => {
layoutStore.closeHovers();
let files = (event.currentTarget as HTMLInputElement)?.files;
if (files === null) return;

View File

@ -64,7 +64,7 @@ export const useLayoutStore = defineStore("layout", {
});
},
closeHovers() {
this.prompts.pop();
this.prompts.shift();
},
// easily reset state using `$reset`
clearLayout() {