fix: keep the app from closing when a files widget opens it offline #52

This commit is contained in:
Linus Rath
2026-10-02 12:57:43 +02:00
parent c5143975db
commit c9a0718acf
+3
View File
@@ -98,6 +98,9 @@ export default function ShareSheet({ node, onClose, onChanged }: ShareSheetProps
);
const candidates = useMemo(() => {
// The sheet is mounted with the Files tab, before a session may exist
// (an offline cold start): nobody to list yet, and no own id to read.
if (principals.length === 0) return [];
const self = ownPrincipalId();
const q = search.trim().toLowerCase();
return principals