mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-09-17 15:47:14 +00:00
fix(frontend): refresh subscription settings after save (#6287)
The derived defaults query is cached indefinitely, so subscription links kept using the old path after settings saves. Invalidate it only after successful saves so inbounds and clients refetch generated subscription URLs.
This commit is contained in:
@@ -77,6 +77,7 @@ export function useAllSettings() {
|
||||
if (!msg?.success) return;
|
||||
if (saved) markSaved(saved);
|
||||
queryClient.invalidateQueries({ queryKey: keys.settings.all() });
|
||||
queryClient.invalidateQueries({ queryKey: keys.settings.defaults() });
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user