From 0dadd7b8924167cabb1807693751df7ba6fca588 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 1 Nov 2026 11:34:50 -0600 Subject: fix linting issues --- src/web/src/components/Search/Searches.jsx | 8 +++++--- src/web/src/components/System/Options/EditModal.jsx | 4 +++- src/web/src/components/Users/User.jsx | 3 ++- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/web/src/components/Search/Searches.jsx b/src/web/src/components/Search/Searches.jsx index 3271bbe0..9306867c 100644 --- a/src/web/src/components/Search/Searches.jsx +++ b/src/web/src/components/Search/Searches.jsx @@ -145,9 +145,11 @@ const Searches = ({ server } = {}) => { }); setRemoving(false); - } catch (error) { - console.error(error); - toast.error(error?.response?.data ?? error?.message ?? error); + } catch (removeError) { + console.error(removeError); + toast.error( + removeError?.response?.data ?? removeError?.message ?? removeError, + ); setRemoving(false); } }; diff --git a/src/web/src/components/System/Options/EditModal.jsx b/src/web/src/components/System/Options/EditModal.jsx index 79fa4332..0727b83e 100644 --- a/src/web/src/components/System/Options/EditModal.jsx +++ b/src/web/src/components/System/Options/EditModal.jsx @@ -59,7 +59,9 @@ const EditModal = ({ onClose, open, theme }) => { await updateYaml({ yaml: newYaml }); onClose(); } catch (nextUpdateError) { - setUpdateError(nextUpdateError?.response?.data ?? nextUpdateError?.message); + setUpdateError( + nextUpdateError?.response?.data ?? nextUpdateError?.message, + ); } } }; diff --git a/src/web/src/components/Users/User.jsx b/src/web/src/components/Users/User.jsx index 4972b0d1..457c095b 100644 --- a/src/web/src/components/Users/User.jsx +++ b/src/web/src/components/Users/User.jsx @@ -58,7 +58,8 @@ const User = ({ {username} - Free Upload Slot: , Total Upload + Free Upload Slot:{' '} + , Total Upload Slots: {uploadSlots}, Queue Length: {queueLength}, IP Address: {address} , Port: {port} -- cgit v1.2.3