|
|
@ -24,7 +24,7 @@ const SystemManagement = ({ dispatch, actions, user, history }) => { |
|
|
|
useEffect(() => { |
|
|
|
dispatch(bigScreen.axyData({ type: 'get', url: `organizations/{orgId}/structures` })).then(res => { |
|
|
|
if (res.success) { |
|
|
|
setSiteList(res.payload.data?.map(v => ({ value: v.id, label: v.name })) || []) |
|
|
|
setSiteList(res.payload.data?.map(v => ({ value: v.id, label: v.name,iotaThingId: v.iotaThingId })) || []) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, []) |
|
|
|