From eb25739c340b2c541e37422c2df1ef7b5c4de0f5 Mon Sep 17 00:00:00 2001 From: f0x52 Date: Tue, 8 Nov 2022 17:51:44 +0100 Subject: [frontend] Custom Emoji Deletion (#994) * re-add eslint * fix oauth url getting too long * actually attach single emoji get and delete routes * basic emoji details + deletion using rtk query * refactor emoji upload to rtk query * clean up old redux api+reducers for custom emoji * fix validation order * refactor custom emoji form fields * remove unused requires * cleanup, fix most eslint errors * more small eslint fixes * fix max emoji size * tiny bit of function documentation --- web/source/settings/admin/federation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/source/settings/admin/federation.js') diff --git a/web/source/settings/admin/federation.js b/web/source/settings/admin/federation.js index 99f10e69e..449d2156f 100644 --- a/web/source/settings/admin/federation.js +++ b/web/source/settings/admin/federation.js @@ -50,7 +50,7 @@ module.exports = function AdminSettings() { return dispatch(api.admin.fetchDomainBlocks()); }); } - }, []); + }, [dispatch, loadedBlockedInstances]); if (!loadedBlockedInstances) { return ( @@ -315,7 +315,7 @@ function InstancePage({domain, Form}) { if (entry == undefined) { dispatch(api.admin.getEditableDomainBlock(domain)); } - }, []); + }, [dispatch, domain, entry]); const [errorMsg, setError] = React.useState(""); const [statusMsg, setStatus] = React.useState(""); -- cgit v1.2.3