From 2ad17e59c7e70b02254ce5bbfee24e7f2856f85a Mon Sep 17 00:00:00 2001 From: FaaizHaikal Date: Sun, 12 May 2024 18:12:40 +0700 Subject: [PATCH] fix: fix lint --- src/components/ReadJointsButton.jsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/ReadJointsButton.jsx b/src/components/ReadJointsButton.jsx index d240f55..5ba5651 100644 --- a/src/components/ReadJointsButton.jsx +++ b/src/components/ReadJointsButton.jsx @@ -69,9 +69,7 @@ function ReadJointsButton() { }); } - const sortedJointRobotData = newJointRobotData.slice().sort((a, b) => { - return a.id - b.id; - }); + const sortedJointRobotData = newJointRobotData.slice().sort((a, b) => a.id - b.id); return sortedJointRobotData; });