From e155af886ad78a7bf0bb4ee75743ab7e6bdbba40 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Tue, 3 Jan 2023 18:39:15 +0800 Subject: [PATCH] fix bug --- src/App.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index fab8a420..2d73d8b3 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -2305,9 +2305,9 @@ const App = memo(() => { const actionsWithCatch = Object.entries(actions).map(([key, action]) => [ key, - async () => { + async (...args) => { try { - await action(); + await action(...args); } catch (err) { handleError(err); }