diff --git a/ui/src/shared/components/AutoRefresh.js b/ui/src/shared/components/AutoRefresh.js index 9f8685a299..081364481a 100644 --- a/ui/src/shared/components/AutoRefresh.js +++ b/ui/src/shared/components/AutoRefresh.js @@ -156,7 +156,9 @@ const AutoRefresh = ComposedComponent => { lastQuerySuccessful, isFetching: false, }) - grabDataForDownload(timeSeries) + if (grabDataForDownload) { + grabDataForDownload(timeSeries) + } }) }, diff --git a/ui/src/shared/components/LayoutCell.js b/ui/src/shared/components/LayoutCell.js index 6da54921ba..f2d6ca6cda 100644 --- a/ui/src/shared/components/LayoutCell.js +++ b/ui/src/shared/components/LayoutCell.js @@ -59,7 +59,7 @@ class LayoutCell extends Component {
{ return } -const {bool, func, shape, number} = PropTypes +const {bool, func, shape} = PropTypes LayoutCellMenuContainer.propTypes = { isDeleting: bool, @@ -62,7 +62,7 @@ LayoutCellMenuContainer.propTypes = { onDeleteClick: func, cell: shape(), isEditable: bool, - dataExists: number, + dataExists: bool, } LayoutCellMenu.propTypes = LayoutCellMenuContainer.propTypes