diff --git a/web/source/settings/admin/federation/import-export.js b/web/source/settings/admin/federation/import-export.js index b4be09506..a11174b1f 100644 --- a/web/source/settings/admin/federation/import-export.js +++ b/web/source/settings/admin/federation/import-export.js @@ -67,6 +67,13 @@ module.exports = function ImportExport() { reader.readAsText(e.target.files[0]); } + React.useEffect(() => { + if (exportResult.isSuccess) { + form.domains.setter(exportResult.data); + } + /* eslint-disable-next-line react-hooks/exhaustive-deps */ + }, [exportResult]); + const [_location, setLocation] = useLocation(); if (updateFromFile) { @@ -98,15 +105,15 @@ module.exports = function ImportExport() { {parseResult.isSuccess && }

Import / Export suspended domains

-
-