mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 02:27:39 +00:00
Fix empty file infinite load
This commit is contained in:
+8
-1
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user