fix: cast Linux portal sentinel as ProcessedDesktopSource to fix TS build error

This commit is contained in:
webadderall
2026-04-20 00:42:36 +10:00
parent 8d5a702cad
commit 92bb1065a2
+1 -1
View File
@@ -840,7 +840,7 @@ export function useScreenRecorder(): UseScreenRecorderReturn {
const selectedSource =
existingSource ??
(platform === "linux"
? { id: "screen:linux-portal", name: "Linux Portal" }
? { id: "screen:linux-portal", name: "Linux Portal" } as ProcessedDesktopSource
: null);
if (!selectedSource) {
alert("Please select a source to record");