From f1384b25a167c4a0b8cc6c8e2314a69bbfa67e53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Tue, 16 Jan 2024 15:58:46 +0100 Subject: [PATCH] updates DeviceConnection component --- frontend/src/components/DeviceConnection.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/DeviceConnection.tsx b/frontend/src/components/DeviceConnection.tsx index 7fc5144..003654d 100644 --- a/frontend/src/components/DeviceConnection.tsx +++ b/frontend/src/components/DeviceConnection.tsx @@ -9,7 +9,7 @@ import { MethodComponent } from './MethodComponent'; type DeviceConnectionProps = { name: string; props: DataServiceJSON; - parentPath?: string; + parentPath: string; isInstantUpdate: boolean; addNotification: (message: string, levelname?: LevelName) => void; }; @@ -18,14 +18,13 @@ export const DeviceConnectionComponent = React.memo( ({ name, props, - parentPath = '', + parentPath, isInstantUpdate, addNotification }: DeviceConnectionProps) => { const { available, connect, ...updatedProps } = props; const availableVal = available.value; - console.log(connect); let fullAccessPath = parentPath; if (name) { fullAccessPath = [parentPath, name].filter((element) => element).join('.');