fix: pr-bug-scan validated finding from #1843 (#2258)

Co-authored-by: orca-bug-scan-bot <orca-bug-scan-bot@stably.ai>
This commit is contained in:
buf0-bot[bot] 2026-05-18 14:23:15 -07:00 committed by GitHub
parent ffc7d77dbe
commit 0b60feb9db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,4 @@
import { toast } from 'sonner'
import { absolutePathToFileUri } from '@/components/editor/markdown-internal-links'
import { getConnectionId } from '@/lib/connection-context'
import { useAppStore } from '@/store'
@ -109,6 +110,7 @@ export function openFilePreviewToSide(params: {
worktreeId
})
if (target.status === 'unsupported') {
toast.error(target.message)
return
}