Skip to content

Commit 6d6cfdd

Browse files
author
Gianmarco Manni
committed
undo debug change
1 parent 9c3e547 commit 6d6cfdd

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

rollup.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ const plugins = [
2121
}),
2222
nodeResolve(),
2323
terser({
24-
output: { comments: true },
24+
output: { comments: false },
2525
compress: {
26-
drop_console: false,
26+
drop_console: true,
2727
},
2828
}),
2929
];

src/lib/Layout/PanelSideBarLayout/PanelSideBar/PanelSidebar.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,11 @@ export const PanelSideBar = <TPanelItemId extends string, TPanelItem>(props: Pan
1919
>();
2020

2121
if (renderFirstItemsLevelAsTiles) {
22-
console.log(menuItems);
23-
if (menuItems?.find((x) => !x.icon)) {
22+
if (menuItems.find((x) => !x.icon)) {
2423
throw new Error("Outer panel icon is required");
2524
}
2625

27-
const activePanel: PanelItem<TPanelItemId, TPanelItem> | undefined = menuItems?.find((x) => x.id === activePanelId);
26+
const activePanel: PanelItem<TPanelItemId, TPanelItem> | undefined = menuItems.find((x) => x.id === activePanelId);
2827
const ButtonIcon = (props: { item: PanelItem<TPanelItemId, TPanelItem> }) => {
2928
const {
3029
item: { disabled, icon, onClick, id, title },

0 commit comments

Comments
 (0)