Commit 908c0f0d81ed92011e61c299252dbfa34151ce98
1 parent
c3955490
fix: create device bind gatewayId use tbDeviceId
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -186,7 +186,7 @@ export const getGATEWAYdevice = async (params: { organization: string }) => { | @@ -186,7 +186,7 @@ export const getGATEWAYdevice = async (params: { organization: string }) => { | ||
186 | params, | 186 | params, |
187 | }); | 187 | }); |
188 | return Promise.resolve<{ label: string; value: string }[]>( | 188 | return Promise.resolve<{ label: string; value: string }[]>( |
189 | - res.map((item) => ({ label: item.name, value: item.id })) | 189 | + res.map((item) => ({ label: item.name, value: item.tbDeviceId })) |
190 | ); | 190 | ); |
191 | }; | 191 | }; |
192 | 192 |