mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-10-31 22:40:01 +00:00
fix useEffect hooks
This commit is contained in:
parent
83253570af
commit
cb1af48009
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ module.exports = function AdminSettings() {
|
|||
|
||||
React.useEffect(() => {
|
||||
if (!loadedBlockedInstances ) {
|
||||
return Promise.try(() => {
|
||||
Promise.try(() => {
|
||||
return dispatch(api.admin.fetchDomainBlocks());
|
||||
});
|
||||
}
|
||||
|
@ -320,7 +320,7 @@ function InstancePage({domain, Form}) {
|
|||
|
||||
React.useEffect(() => {
|
||||
if (entry == undefined) {
|
||||
return dispatch(adminActions.newDomainBlock(domain));
|
||||
dispatch(adminActions.newDomainBlock(domain));
|
||||
}
|
||||
}, []);
|
||||
|
||||
|
|
Loading…
Reference in a new issue