Skip to content

Commit

Permalink
fix: updates for performance issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbuss authored and diehbria committed Dec 7, 2023
1 parent 9f0b63d commit 8863b9a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
11 changes: 0 additions & 11 deletions packages/dashboard/src/components/widgets/tile/tile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ import { DashboardState } from '~/store/state';

import './tile.css';
import { onChangeDashboardGridEnabledAction } from '~/store/actions';
import { CSVDownloadButton } from '~/components/csvDownloadButton';
import { StyledSiteWiseQueryConfig } from '~/customization/widgets/types';
import { useClients } from '~/components/dashboard/clientContext';

type DeletableTileActionProps = {
handleDelete: CancelableEventHandler<ClickDetail>;
Expand Down Expand Up @@ -56,7 +53,6 @@ const WidgetTile: React.FC<WidgetTileProps> = ({ children, widget, title, remove
const isReadOnly = useSelector((state: DashboardState) => state.readOnly);
const dispatch = useDispatch();
const [visible, setVisible] = useState(false);
const { iotSiteWiseClient } = useClients();
const { onDelete } = useDeleteWidgets();
const metricsRecorder = getPlugin('metricsRecorder');

Expand Down Expand Up @@ -115,13 +111,6 @@ const WidgetTile: React.FC<WidgetTileProps> = ({ children, widget, title, remove
</Box>
</div>
<div className='tile-button-contianer'>
{iotSiteWiseClient && widget.type !== 'text' && (
<CSVDownloadButton
client={iotSiteWiseClient}
queryConfig={widget.properties.queryConfig as StyledSiteWiseQueryConfig}
fileName={`${widget.properties.title ?? widget.type}`}
/>
)}
{isRemoveable && <DeletableTileAction handleDelete={handleDelete} />}
<ConfirmDeleteModal
visible={visible}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export const useVisualizedDataStreams = (queries: TimeSeriesDataQuery[], passedI
queries,
settings: {
fetchFromStartToEnd: true,
fetchMostRecentBeforeStart: true,
},
});

Expand Down

0 comments on commit 8863b9a

Please sign in to comment.