fix build issue

This commit is contained in:
Arjun 2026-04-18 00:22:03 +05:30
parent eaab438666
commit 1f58c1f6cb

View file

@ -143,7 +143,7 @@ export function SuggestedTopicsView({ onExploreTopic }: SuggestedTopicsViewProps
// Try next legacy location.
}
}
if (!legacyResult || !legacyPath) {
if (!legacyResult || !legacyPath || legacyResult.data === undefined) {
throw new Error('Suggested topics file not found')
}
await window.ipc.invoke('workspace:writeFile', {