Add markdown preview failure fallback
Co-authored-by: Codex <[email protected]> Co-authored-by: codex <[email protected]>
This commit is contained in:
1 parent
3be757f51a
commit
360747433f
1 file changed
+3
-1
@@ -1065,6 +1065,7 @@ const MarkdownFileLink = memo(function MarkdownFileLink({
|
||||
description: error instanceof Error ? error.message : "An error occurred.",
|
||||
}),
|
||||
);
|
||||
handleOpenInFilePreview();
|
||||
} catch (cause) {
|
||||
reportMarkdownActionFailure(
|
||||
{ operation: "open-file-in-browser", target: targetPath },
|
||||
@@ -1077,9 +1078,10 @@ const MarkdownFileLink = memo(function MarkdownFileLink({
|
||||
description: cause instanceof Error ? cause.message : "An error occurred.",
|
||||
}),
|
||||
);
|
||||
handleOpenInFilePreview();
|
||||
}
|
||||
})();
|
||||
}, [onOpenInBrowser, targetPath]);
|
||||
}, [handleOpenInFilePreview, onOpenInBrowser, targetPath]);
|
||||
|
||||
const handleCopy = useCallback(
|
||||
(value: string, title: string) => {
|
||||
|
||||
Reference in new issue
Block a user