fix: pass url as object to symphony:fetchDocumentContent handler

The handler expects { url: string } but preload was passing just the
url string directly. This caused "Invalid URL" errors when trying to
preview document content.
This commit is contained in:
Pedram Amini
2026-01-26 15:05:06 -06:00
parent d8b9ff9abf
commit 0ecdbd4138

View File

@@ -307,7 +307,7 @@ export function createSymphonyApi() {
fetchDocumentContent: (
url: string
): Promise<{ success: boolean; content?: string; error?: string }> =>
ipcRenderer.invoke('symphony:fetchDocumentContent', url),
ipcRenderer.invoke('symphony:fetchDocumentContent', { url }),
// Real-time updates
onUpdated: (callback: () => void) => {