prevent stale remote after update

This commit is contained in:
FTCHD
2026-01-10 20:17:41 +07:00
parent 712d0e5811
commit 8cb3eb86ce
+2 -1
View File
@@ -110,7 +110,8 @@ export default function RemoteEditDrawer({
return updatedRemoteConfig
},
onSuccess: (updatedRemoteConfig) => {
onSuccess: async (updatedRemoteConfig) => {
await rclone('/fscache/clear').catch()
queryClient.setQueryData(
['remote', remoteName, 'config'],
(old?: typeof remoteConfig) => ({