diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-11-01 11:34:50 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-11-01 11:34:50 -0600 |
| commit | 0dadd7b8924167cabb1807693751df7ba6fca588 (patch) | |
| tree | 56a009210ffa3abdafe2c0d3b3257bd5ba3291a2 | |
| parent | 6cd4e00b709ee0d6f9e399b343f5d91195ef3e82 (diff) | |
| download | slskd-0dadd7b8924167cabb1807693751df7ba6fca588.tar.gz | |
fix linting issues
| -rw-r--r-- | src/web/src/components/Search/Searches.jsx | 8 | ||||
| -rw-r--r-- | src/web/src/components/System/Options/EditModal.jsx | 4 | ||||
| -rw-r--r-- | 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} </Item.Header> <Item.Meta> - Free Upload Slot: <FreeUploadSlot hasFreeUploadSlot={hasFreeUploadSlot} />, Total Upload + Free Upload Slot:{' '} + <FreeUploadSlot hasFreeUploadSlot={hasFreeUploadSlot} />, Total Upload Slots: {uploadSlots}, Queue Length: {queueLength}, IP Address: {address} , Port: {port} </Item.Meta> |
