fix(settings): invalidate shared appConfig cache near auth settings write

This commit is contained in:
Alexandre Teixeira
2026-10-31 20:45:19 +00:00
parent 1888839e06
commit e33607fd4f
+1
View File
@@ -26,6 +26,7 @@ export function saveImagePreferences(patch) {
method: 'POST', credentials: 'same-origin',
headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(patch),
});
invalidateSettings();
if (response.status === 403) {
const userEntries = Object.entries(patch).filter(([k]) => USER_PREFERENCE_KEYS.includes(k));
for (const [key, value] of userEntries) {