lavoce #2
@@ -243,8 +243,8 @@ const DetailTag = (props) => {
|
|||||||
if (response && response.data && response.data.data) {
|
if (response && response.data && response.data.data) {
|
||||||
const devices = response.data.data;
|
const devices = response.data.data;
|
||||||
|
|
||||||
// Filter hanya device yang active (device_status === true)
|
// Filter hanya device yang active (is_active === true)
|
||||||
const activeDevices = devices.filter((device) => device.device_status === true);
|
const activeDevices = devices.filter((device) => device.is_active === true);
|
||||||
|
|
||||||
setDeviceList(activeDevices);
|
setDeviceList(activeDevices);
|
||||||
}
|
}
|
||||||
@@ -508,7 +508,7 @@ const DetailTag = (props) => {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ marginBottom: 12 }}>
|
<div style={{ marginBottom: 12 }}>
|
||||||
<Text strong>Plant Sub Section Name</Text>
|
<Text strong>Plant Sub Section</Text>
|
||||||
<Select
|
<Select
|
||||||
style={{ width: '100%' }}
|
style={{ width: '100%' }}
|
||||||
placeholder="Select Plant Sub Section"
|
placeholder="Select Plant Sub Section"
|
||||||
@@ -540,7 +540,7 @@ const DetailTag = (props) => {
|
|||||||
<Text style={{ color: 'red' }}> *</Text>
|
<Text style={{ color: 'red' }}> *</Text>
|
||||||
<Select
|
<Select
|
||||||
style={{ width: '100%' }}
|
style={{ width: '100%' }}
|
||||||
placeholder="Search device code or name"
|
placeholder="Select Device"
|
||||||
value={FormData.device_id || undefined}
|
value={FormData.device_id || undefined}
|
||||||
onChange={handleDeviceChange}
|
onChange={handleDeviceChange}
|
||||||
disabled={props.readOnly}
|
disabled={props.readOnly}
|
||||||
|
|||||||
Reference in New Issue
Block a user