Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(desktop): derive export eligibility from current background

Richie McIlroy78b57c18eead
diff --git a/apps/desktop/src/routes/editor/ExportPage.tsx b/apps/desktop/src/routes/editor/ExportPage.tsx
index 73fcf5a5e..68e60f5f6 100644
--- a/apps/desktop/src/routes/editor/ExportPage.tsx
+++ b/apps/desktop/src/routes/editor/ExportPage.tsx
@@ -182,6 +182,7 @@ export function ExportPage() {
refetchMeta,
flushProjectConfig,
projectRevision,
+ project,
} = useEditorContext();
const projectPath = editorInstance.path;
@@ -193,8 +194,7 @@ export function ExportPage() {
const organisations = organizationSelection.organizations;
const hasTransparentBackground = () => {
- const backgroundSource =
- editorInstance.savedProjectConfig.background.source;
+ const backgroundSource = project.background.source;
return (
backgroundSource.type === "color" &&
backgroundSource.alpha !== undefined &&