Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix: keep unavailable recordings visible

Richie McIlroy96894e37d963
diff --git a/apps/desktop/src/routes/(window-chrome)/new-main/index.tsx b/apps/desktop/src/routes/(window-chrome)/new-main/index.tsx
index fa3418853..cc270e2b0 100644
--- a/apps/desktop/src/routes/(window-chrome)/new-main/index.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/new-main/index.tsx
@@ -2831,8 +2831,13 @@ function Page() {
await commands.showWindow({
Editor: { project_path: projectPath },
});
- } else if (recording.sharing?.link) {
- await shell.open(recording.sharing.link);
+ } else {
+ const link = recording.sharing?.link;
+ if (!link) {
+ toast.error("This recording isn't ready to open yet.");
+ return;
+ }
+ await shell.open(link);
}
await getCurrentWindow().hide();