Elffuss BraidHub

kikocis/continue public

remove try catch
Changesete90a6cafc492ec5342a5d67c0e9806fb90b8e0158ef259da2fad807fa93b7112
Authoruinstinct <61635505+uinstinct@users.noreply.github.com> · 2025-07-15 12:57 +05:30
Committeruinstinct <61635505+uinstinct@users.noreply.github.com> · 2025-07-15 12:57 +05:30
Parentscb40c4d70413

Browse the files at this changeset

1 file changed

modified gui/src/pages/config/HelpCenterSection.tsx +8 −12
@@ -22,19 +22,15 @@
2222 const currentSession = useAppSelector((state) => state.session);
2323
2424 const handleViewSessionData = async () => {
25- try {
26- const sessionData = await ideMessenger.request("history/load", {
27- id: currentSession.id,
28- });
25+ const sessionData = await ideMessenger.request("history/load", {
26+ id: currentSession.id,
27+ });
2928
30- if (sessionData.status === "success") {
31- await ideMessenger.request("showVirtualFile", {
32- name: `${sessionData.content.title}.json`,
33- content: JSON.stringify(sessionData.content, null, 2),
34- });
35- }
36- } catch (error) {
37- console.error("Error viewing session data:", error);
29+ if (sessionData.status === "success") {
30+ await ideMessenger.request("showVirtualFile", {
31+ name: `${sessionData.content.title}.json`,
32+ content: JSON.stringify(sessionData.content, null, 2),
33+ });
3834 }
3935 };
4036