mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Fix empty file infinite load
This commit is contained in:
@@ -241,7 +241,14 @@ export const SecretDropzone = ({
|
||||
|
||||
setIsLoading.on();
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user