mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-04 01:15:12 +01:00
Fix Web UI trying to save user settings when logged out (#30324)
This commit is contained in:
parent
1b6eb2c7f0
commit
66906a1bc1
@ -20,7 +20,7 @@ export function changeSetting(path, value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const debouncedSave = debounce((dispatch, getState) => {
|
const debouncedSave = debounce((dispatch, getState) => {
|
||||||
if (getState().getIn(['settings', 'saved'])) {
|
if (getState().getIn(['settings', 'saved']) || !getState().getIn(['meta', 'me'])) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user