From 1da96d6bc235114ac4862ae23d561dff1b309d55 Mon Sep 17 00:00:00 2001 From: mahiro <70263039+mahiro72@users.noreply.github.com> Date: Wed, 17 Dec 2025 02:20:30 +0900 Subject: [PATCH] Update playground/ruff/src/Editor/Chrome.tsx Co-authored-by: Micha Reiser --- playground/ruff/src/Editor/Chrome.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/playground/ruff/src/Editor/Chrome.tsx b/playground/ruff/src/Editor/Chrome.tsx index a86f4e589f..559ffedd5b 100644 --- a/playground/ruff/src/Editor/Chrome.tsx +++ b/playground/ruff/src/Editor/Chrome.tsx @@ -21,10 +21,12 @@ export default function Chrome() { return; } - await persist(settings, pythonSource).catch((error) => - // eslint-disable-next-line no-console - console.error(`Failed to share playground: ${error}`), - ); + try { + await persist(serialized); + } catch (error) { + // eslint-disable-next-line no-console + console.error("Failed to share playground", error); + } }, [pythonSource, settings]); if (initPromise.current == null) {