From f3fdbb50fddba6cab817877905b6f51e0f0d1782 Mon Sep 17 00:00:00 2001 From: Sonja Happ Date: Thu, 27 May 2021 16:37:30 +0200 Subject: [PATCH] add missing key properties to get rid of warning --- src/dashboard/dashboard.js | 21 ++++++++++++++------- src/widget/widget-container.js | 26 ++++++++++++++------------ 2 files changed, 28 insertions(+), 19 deletions(-) diff --git a/src/dashboard/dashboard.js b/src/dashboard/dashboard.js index 4b44a05..0af7555 100644 --- a/src/dashboard/dashboard.js +++ b/src/dashboard/dashboard.js @@ -508,11 +508,11 @@ class Dashboard extends Component { let dropZoneHeight = this.state.dashboard.height; return (
-
-
+
+

{this.state.dashboard.name} - +

-
e.preventDefault()}> +
e.preventDefault()}> {this.state.editing && {this.state.widgets != null && Object.keys(this.state.widgets).map(widgetKey => ( -
+
this.closeEditSignalsModal(direction)} direction="Output" @@ -623,6 +629,7 @@ class Dashboard extends Component { sessionToken={this.state.sessionToken} /> this.closeEditSignalsModal(direction)} direction="Input" diff --git a/src/widget/widget-container.js b/src/widget/widget-container.js index 77efc3c..2f84fb1 100644 --- a/src/widget/widget-container.js +++ b/src/widget/widget-container.js @@ -95,18 +95,19 @@ class WidgetContainer extends React.Component { render() { const widget = this.props.widget; - let contextMenu = () if ( !this.props.editing ){ @@ -148,8 +149,9 @@ class WidgetContainer extends React.Component { 'locked': widget.isLocked }); - return (
this.showMenu(e, this.props.index, this.props.editing)}> + return (
this.showMenu(e, this.props.index, this.props.editing)}> { this.rnd = c; }} size={{width: Number(widget.width), height: Number(widget.height)}} position={{x: Number(widget.x), y: Number(widget.y),}}