Fix empty file infinite load

This commit is contained in:
x032205
2025-08-12 12:12:31 -07:00
parent 458dcd31c1
commit e4d90eb055
@@ -241,7 +241,14 @@ export const SecretDropzone = ({
setIsLoading.on(); setIsLoading.on();
reader.onload = (event) => { reader.onload = (event) => {
if (!event?.target?.result) return; if (!event?.target?.result) {
createNotification({
type: "error",
text: "Invalid file contents."
});
setIsLoading.off();
return;
}
let env: TParsedEnv; let env: TParsedEnv;