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 {
|
||||
...rest,
|
||||
productUuid: product.uuid,
|
||||
name: deviceDetails.name,
|
||||
name: deviceDetails?.name,
|
||||
productName: product.name,
|
||||
} as GetDeviceDetailsInterface;
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user