From d794b4add60404ccc65535f8b283c2db8d9fc999 Mon Sep 17 00:00:00 2001 From: Pierre-Gilles Leymarie Date: Wed, 12 Aug 2020 08:57:41 +0200 Subject: [PATCH] Fix DeviceInRoom bug --- front/src/components/boxs/device-in-room/DevicesInRoomsBox.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/front/src/components/boxs/device-in-room/DevicesInRoomsBox.jsx b/front/src/components/boxs/device-in-room/DevicesInRoomsBox.jsx index c0003b5578..9c6eaf911e 100644 --- a/front/src/components/boxs/device-in-room/DevicesInRoomsBox.jsx +++ b/front/src/components/boxs/device-in-room/DevicesInRoomsBox.jsx @@ -57,6 +57,7 @@ const RoomCard = ({ children, ...props }) => { device.features.map( (deviceFeature, deviceFeatureIndex) => props.box && + props.box.device_features && props.box.device_features.indexOf(deviceFeature.selector) !== -1 && (