Skip to content

Commit dc52693

Browse files
committed
fix: improve validation logic in DownloadResult component
1 parent c6d6cb6 commit dc52693

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/modules/tasks/DownloadResult.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ export function DownloadResult({
5353
},
5454
});
5555

56-
if (!taskid || !taskResults) return null;
56+
const parsedResult = taskResultToObject(taskResults);
57+
58+
if (!taskid || !parsedResult || parsedResult.storage === 'none') {
59+
return null;
60+
}
5761

5862
return (
5963
<>

0 commit comments

Comments
 (0)