From 151247e9df5b3f7365b4eec4e4ecccc75a5cd591 Mon Sep 17 00:00:00 2001 From: and189 Date: Wed, 29 Nov 2023 05:59:22 +0000 Subject: [PATCH] Update executeJobModal.tsx --- packages/client/src/app/jobs/executeJobModal.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/client/src/app/jobs/executeJobModal.tsx b/packages/client/src/app/jobs/executeJobModal.tsx index 20f912c..0b9f2b5 100644 --- a/packages/client/src/app/jobs/executeJobModal.tsx +++ b/packages/client/src/app/jobs/executeJobModal.tsx @@ -17,12 +17,9 @@ export const ExecuteJobModal: React.FC = ({ closeModal, de const [search, setSearch] = useState(''); const filteredDevices = useMemo(() => { - return devices?.filter((device) => - device.deviceId?.includes(search) || device.origin?.includes(search) - ) || []; + return devices?.filter((device) => device.deviceId?.includes(search) || device.origin?.includes(search)) || []; }, [devices, search]); - const executeJob = async ({ deviceIds }: { deviceIds: string[] | number[] }) => { const promise = fetch(`/api/job/execute/${jobId}/${deviceIds.join()}`, { method: 'POST' }).then( async (response) => {