Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-bizfactory committed Jan 8, 2024
1 parent 233bcb8 commit 9ed660f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/js/preview-v2/DiagramModal.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import styled from "@emotion/styled";
import { t } from "i18next";
import RcTable from "rc-table";
import { useHotkeys } from "react-hotkeys-hook";
import { PreviewStatistics } from "../api/types";
import Modal from "../modal/Modal";
import Diagram from "./Diagram";
import { StyledTable } from "./Table";
import { previewStatsIsBarStats } from "./util";
import { useHotkeys } from "react-hotkeys-hook";

interface DiagramModalProps {
statistic: PreviewStatistics;
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/js/preview-v2/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default function Preview() {
const statistics = preview.statisticsData;

useHotkeys("esc", () => {
if(!selectBoxOpen && !popOver) onClose();
if (!selectBoxOpen && !popOver) onClose();
});

const store = useStore();
Expand All @@ -101,7 +101,7 @@ export default function Preview() {
dispatch(toggleDragHandles());
};
}
}, [preview.statisticsData]);
}, [preview.statisticsData, dispatch, store]);

return (
<FullScreen>
Expand Down

0 comments on commit 9ed660f

Please sign in to comment.