Skip to content

Commit abb6271

Browse files
committed
fixed bug in EquivalenceStates where transition table in left Drawer was not updating
1 parent f116e9b commit abb6271

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/features/components/minimzeDfa/EquivalentStates.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ import { MainContent } from "../../../common/MainContent";
3434
import { CustomAppBar } from "../../../common/CustomAppBar";
3535
import { CustomDrawer } from "../../../common/CustomDrawer";
3636
import { CustomAppBarProps } from "../../../common/props/CustomAppBarProps";
37-
import { CustomDrawerProps } from "../../../common/props/CustomDrawerProps";
38-
import { GetDrawerTransitionTableColumns } from "../../../utils/GetDrawerTransitionTableColumns";
39-
import { GetDrawerTransitionTableRows } from "../../../utils/GetDrawerTransitionTableRows";
37+
import { CustomDrawerProps } from "../../../common/props/CustomDrawerProps";
4038

4139
const columnNames = PossibleTransitionValues.filter((value) => value !== "^");
4240
let columnIndex = 0;
@@ -497,10 +495,7 @@ export const EquivalentStates = (props: EquivalentStatesProps) => {
497495
open,
498496
setOpen,
499497
title: "Transition Table",
500-
transitionTableProps: {
501-
rows: GetDrawerTransitionTableRows(dataContext.rows, ""),
502-
columns: GetDrawerTransitionTableColumns(dataContext.columns, []),
503-
},
498+
transitionTableProps: transitionTableProps,
504499
};
505500

506501
return (

0 commit comments

Comments
 (0)