fix useEffect hooks

This commit is contained in:
f0x 2022-09-16 15:49:33 +02:00
parent 83253570af
commit cb1af48009

View file

@ -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));
}
}, []);