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
co-authored by orca-bug-scan-bot
parent ffc7d77dbe
commit 0b60feb9db
+2
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
}