From 1ba83ec10576e90dd6e81f5d45fc7fca9655394f Mon Sep 17 00:00:00 2001 From: Rafiafrzl Date: Thu, 16 Oct 2025 15:07:25 +0700 Subject: [PATCH] fix: update device filtering logic and improve UI labels in DetailTag component --- src/pages/master/tag/component/DetailTag.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/master/tag/component/DetailTag.jsx b/src/pages/master/tag/component/DetailTag.jsx index 0e048e9..3863ae6 100644 --- a/src/pages/master/tag/component/DetailTag.jsx +++ b/src/pages/master/tag/component/DetailTag.jsx @@ -243,8 +243,8 @@ const DetailTag = (props) => { if (response && response.data && response.data.data) { const devices = response.data.data; - // Filter hanya device yang active (device_status === true) - const activeDevices = devices.filter((device) => device.device_status === true); + // Filter hanya device yang active (is_active === true) + const activeDevices = devices.filter((device) => device.is_active === true); setDeviceList(activeDevices); } @@ -508,7 +508,7 @@ const DetailTag = (props) => { />
- Plant Sub Section Name + Plant Sub Section