Refactor: Remove optional chaining when calling desktopApi methods
This commit is contained in:
@@ -66,7 +66,7 @@ export default function AssistantMessageContent({ content, streamOutput, sources
|
||||
event.preventDefault()
|
||||
try {
|
||||
const parsed = new URL(u)
|
||||
desktopApi?.openPath?.(decodeURIComponent(parsed.pathname))
|
||||
desktopApi.openPath(decodeURIComponent(parsed.pathname))
|
||||
} catch {}
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user