mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-02-28 06:52:33 +00:00
fix: working state updates for active/non-active downloads
This commit is contained in:
@@ -100,7 +100,8 @@ export default function Index() {
|
||||
const deleteFile = async (id: string) => {
|
||||
const downloadsDir = FileSystem.documentDirectory + "downloads/";
|
||||
await FileSystem.deleteAsync(downloadsDir + id + ".json");
|
||||
await queryClient.invalidateQueries({ queryKey: ["downloadedFiles"] });
|
||||
await FileSystem.deleteAsync(downloadsDir + id);
|
||||
refetchDownloadedFiles()
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user