From a1637906e9c96c01d9906850a884ad65d07d324f Mon Sep 17 00:00:00 2001 From: Clemens Solar Date: Sat, 20 Jan 2024 23:48:03 +0100 Subject: [PATCH] refactor: do not catch render error, let catch-all handle it --- src/components/Editor.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/Editor.tsx b/src/components/Editor.tsx index e724498..10db76e 100644 --- a/src/components/Editor.tsx +++ b/src/components/Editor.tsx @@ -70,8 +70,7 @@ export default function Editor({ url, initialMode }: Props) { setIsRendering(true); try { await preview!(code, parameters); - setIsRendering(false); - } catch (err) { + } finally { setIsRendering(false); } };