mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 20:00:47 +00:00
fix(translator): Ensure loading state is reset after error handling in TranslatorPage
This commit is contained in:
@@ -180,8 +180,11 @@ export default function TranslatorPage() {
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({ file: "5_res_provider.txt", content: full })
|
||||
});
|
||||
} catch (e) { alert(e.message); }
|
||||
setLoad("send", false);
|
||||
} catch (e) {
|
||||
alert(e.message);
|
||||
} finally {
|
||||
setLoad("send", false);
|
||||
}
|
||||
};
|
||||
|
||||
const handleCopy = async (id) => {
|
||||
|
||||
Reference in New Issue
Block a user