From cb1af48009011ccfc1b5c87f175ed7158abee6f1 Mon Sep 17 00:00:00 2001 From: f0x Date: Fri, 16 Sep 2022 15:49:33 +0200 Subject: [PATCH] fix useEffect hooks --- web/source/settings-panel/admin/federation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/source/settings-panel/admin/federation.js b/web/source/settings-panel/admin/federation.js index 1363938ff..3911099d7 100644 --- a/web/source/settings-panel/admin/federation.js +++ b/web/source/settings-panel/admin/federation.js @@ -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)); } }, []);