Skip to content

Commit

Permalink
chore: fix unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
Tethik committed Nov 1, 2023
1 parent f687faf commit 3de2c8b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions app/src/components/model/panels/left/LeftPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { TAB } from "./constants";
import { LeftFooter } from "./Footer";
import { LeftTabsHeader } from "./LeftTabsHeader";
import { SystemTab } from "./SystemTab";
import { ActionItemList } from "./ActionItemList";
import { ActionItemTab } from "./ActionItemTab";

function TabPanel(props) {
Expand Down Expand Up @@ -44,11 +43,7 @@ export function LeftPanel() {
}));

useEffect(() => {
if (!component) {
setTab(TAB.SYSTEM);
} else {
setTab(TAB.COMPONENT);
}
setTab(component ? TAB.COMPONENT : TAB.SYSTEM);
}, [component]);

return (
Expand Down

0 comments on commit 3de2c8b

Please sign in to comment.