diff --git a/web/source/settings/admin/emoji/remote/parse-from-toot.js b/web/source/settings/admin/emoji/remote/parse-from-toot.js
index 925117be3..dc56ae48a 100644
--- a/web/source/settings/admin/emoji/remote/parse-from-toot.js
+++ b/web/source/settings/admin/emoji/remote/parse-from-toot.js
@@ -29,11 +29,15 @@ const {
useCheckListInput
} = require("../../../lib/form");
+const useFormSubmit = require("../../../lib/form/submit");
+
const CheckList = require("../../../components/check-list");
const { CategorySelect } = require('../category-select');
const query = require("../../../lib/query");
const Loading = require("../../../components/loading");
+const { TextInput } = require("../../../components/form/inputs");
+const MutationButton = require("../../../components/form/mutation-button");
module.exports = function ParseFromToot({ emojiCodes }) {
const [searchStatus, { data, isLoading, isSuccess, error }] = query.useSearchStatusForEmojiMutation();
@@ -70,7 +74,9 @@ module.exports = function ParseFromToot({ emojiCodes }) {
function submitSearch(e) {
e.preventDefault();
- searchStatus(url);
+ if (url.trim().length != 0) {
+ searchStatus(url);
+ }
}
return (
@@ -91,7 +97,7 @@ module.exports = function ParseFromToot({ emojiCodes }) {
/>
- {isLoading &&