Unified · Split
| @@ -1065,6 +1065,7 @@ const MarkdownFileLink = memo(function MarkdownFileLink({ · 1064 unmodified lines | ||
| 1065 | 1065 | description: error instanceof Error ? error.message : "An error occurred.", |
| 1066 | 1066 | }), |
| 1067 | 1067 | ); |
| 1068 | + handleOpenInFilePreview(); | |
| 1068 | 1069 | } catch (cause) { |
| 1069 | 1070 | reportMarkdownActionFailure( |
| 1070 | 1071 | { operation: "open-file-in-browser", target: targetPath }, |
| @@ -1077,9 +1078,10 @@ const MarkdownFileLink = memo(function MarkdownFileLink({ · 6 unmodified lines | ||
| 1077 | 1078 | description: cause instanceof Error ? cause.message : "An error occurred.", |
| 1078 | 1079 | }), |
| 1079 | 1080 | ); |
| 1081 | + handleOpenInFilePreview(); | |
| 1080 | 1082 | } |
| 1081 | 1083 | })(); |
| 1082 | − }, [onOpenInBrowser, targetPath]); | |
| 1084 | + }, [handleOpenInFilePreview, onOpenInBrowser, targetPath]); | |
| 1083 | 1085 | |
| 1084 | 1086 | const handleCopy = useCallback( |
| 1085 | 1087 | (value: string, title: string) => { |