mirror of
https://github.com/fergalmoran/opengifame.git
synced 2026-01-06 08:55:58 +00:00
Fix bare upload page
This commit is contained in:
@@ -20,7 +20,7 @@ const Upload = () => {
|
||||
setLoading(false);
|
||||
console.log("page", "set-file", clipboardContext?.file);
|
||||
} else {
|
||||
if (c === "1") {
|
||||
if (c !== "1") {
|
||||
setLoading(false);
|
||||
}
|
||||
}
|
||||
@@ -31,9 +31,7 @@ const Upload = () => {
|
||||
(c === "1" && clipboardContext?.file != null && !loading) ||
|
||||
c !== "1"
|
||||
) {
|
||||
return clipboardContext?.file ? (
|
||||
<UploadPage file={clipboardContext?.file} />
|
||||
) : null;
|
||||
return <UploadPage file={clipboardContext?.file ?? undefined} />;
|
||||
}
|
||||
if (c === "1" && loading) {
|
||||
return <Loading />;
|
||||
|
||||
Reference in New Issue
Block a user