do not reload cache on delete

This commit is contained in:
Theophyl Hoguet committed 2023-03-17 03:08:41 +01:00
1 parent 5793ad1598
commit fab6e9c59b
1 file changed
+2 -4
+2 -4
View File
@@ -18,7 +18,6 @@ export default defineComponent({
data() { data() {
return { return {
images: new Map<Number, ImageType>(), images: new Map<Number, ImageType>(),
currentPath: window.location.hash,
file: null as FileList | null file: null as FileList | null
} }
}, },
@@ -32,9 +31,8 @@ export default defineComponent({
}); });
}, },
deleteFile(id: number) { deleteFile(id: number) {
api.deleteImage(id).then(() => { this.images.delete(id);
this.updateImageList(); api.deleteImage(id);
})
} }
}, },
created() { created() {