fix: prevent opening undefined download URLs in RecordingsPage
Deploy to VPS / deploy (push) Failing after 1m31s
Deploy to VPS / deploy (push) Failing after 1m31s
This commit is contained in:
1 parent
300512b2cb
commit
779fb6b338
1 file changed
+3
-1
@@ -106,7 +106,9 @@ export default function RecordingsPage() {
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
onClick={() => window.open(rec.download_url, "_blank")}
|
||||
onClick={() => {
|
||||
if (rec.download_url) window.open(rec.download_url, "_blank");
|
||||
}}
|
||||
>
|
||||
<Download className="size-4" />
|
||||
</Button>
|
||||
|
||||
Reference in new issue
Block a user