Skip to content

Commit

Permalink
fix: fix broken synchro-charts widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
corteggiano committed Sep 29, 2023
1 parent b24a2b5 commit 5e61361
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const BarChartWidgetComponent: React.FC<BarChartWidget> = (widget) => {
iotSiteWiseQuery && queryConfig.query
? [iotSiteWiseQuery?.timeSeriesData(queryConfig.query as SiteWiseAssetQuery)]
: [];
const key = computeQueryConfigKey(viewport, queryConfig);
const key = computeQueryConfigKey(undefined, queryConfig);
const aggregation = getAggregation(widget);
const significantDigits = widgetSignificantDigits ?? dashboardSignificantDigits;
// there may be better ways to fix this, i.e. not have -44 and let the chart container take its parent height,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const StatusTimelineWidgetComponent: React.FC<StatusTimelineWidget> = (widget) =
iotSiteWiseQuery && queryConfig.query
? [iotSiteWiseQuery?.timeSeriesData(queryConfig.query as SiteWiseAssetQuery)]
: [];
const key = computeQueryConfigKey(viewport, queryConfig);
const key = computeQueryConfigKey(undefined, queryConfig);
const aggregation = getAggregation(widget);

const significantDigits = widgetSignificantDigits ?? dashboardSignificantDigits;
Expand Down

0 comments on commit 5e61361

Please sign in to comment.