mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 08:04:53 +00:00
fix: handle potential undefined deviceDetails in getDeviceByDeviceUuid
This commit is contained in:
@ -685,7 +685,7 @@ export class DeviceService {
|
|||||||
return {
|
return {
|
||||||
...rest,
|
...rest,
|
||||||
productUuid: product.uuid,
|
productUuid: product.uuid,
|
||||||
name: deviceDetails.name,
|
name: deviceDetails?.name,
|
||||||
productName: product.name,
|
productName: product.name,
|
||||||
} as GetDeviceDetailsInterface;
|
} as GetDeviceDetailsInterface;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user