Skip to content

Commit 51f0f93

Browse files
wesleylimahlomzik
andauthored
fix: OPTIC-2142: Fix sticky side panels back (#7512) (#7550)
Co-authored-by: Andrew <[email protected]>
1 parent a0ca4a2 commit 51f0f93

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

web/libs/editor/src/components/SidePanels/OutlinerPanel/OutlinerTree.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ const useDataTree = ({ regions, rootClass, footer }: any) => {
198198
const processor = useCallback((item: any, idx, _false, _null, _onClick) => {
199199
const { id, type, hidden, isDrawing } = item ?? {};
200200
const style = item?.background ?? item?.getOneColor?.();
201-
console.log(item?.background);
202201
const color = chroma(style ?? "#666").alpha(1);
203202
const mods: Record<string, any> = { hidden, type, isDrawing };
204203

web/libs/editor/src/components/SidePanels/TabPanels/SideTabsPanels.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,6 @@ const SideTabsPanelsComponent: FC<SidePanelsProps> = ({
265265
maxHeight,
266266
alignment: setDetached ? undefined : panel.alignment,
267267
});
268-
setSnap(undefined);
269268
});
270269
},
271270
[updatePanel, checkSnap, panelData, positioning],
@@ -502,7 +501,6 @@ const SideTabsPanelsComponent: FC<SidePanelsProps> = ({
502501
viewportSize.current.height = clientHeight ?? 0;
503502
setViewportSizeMatch(checkContentFit());
504503
setPanelMaxWidth(rootRef.current.clientWidth * 0.4);
505-
setSnap(undefined);
506504
});
507505
});
508506

0 commit comments

Comments
 (0)