mirror of
https://github.com/Egonex-AI/Understand-Anything.git
synced 2026-06-22 10:58:03 +08:00
Merge pull request #56 from Lum1104/copilot/fix-hide-bottom-bar-issue-55
fix: remove redundant CodeViewer bottom bar on node selection
This commit is contained in:
@@ -480,7 +480,6 @@ function GraphViewInner() {
|
||||
const navigationLevel = useDashboardStore((s) => s.navigationLevel);
|
||||
const activeLayerId = useDashboardStore((s) => s.activeLayerId);
|
||||
const selectNode = useDashboardStore((s) => s.selectNode);
|
||||
const openCodeViewer = useDashboardStore((s) => s.openCodeViewer);
|
||||
const drillIntoLayer = useDashboardStore((s) => s.drillIntoLayer);
|
||||
const focusNodeId = useDashboardStore((s) => s.focusNodeId);
|
||||
const setFocusNode = useDashboardStore((s) => s.setFocusNode);
|
||||
@@ -523,10 +522,9 @@ function GraphViewInner() {
|
||||
drillIntoLayer(targetLayerId);
|
||||
} else {
|
||||
selectNode(node.id);
|
||||
openCodeViewer(node.id);
|
||||
}
|
||||
},
|
||||
[navigationLevel, drillIntoLayer, selectNode, openCodeViewer],
|
||||
[navigationLevel, drillIntoLayer, selectNode],
|
||||
);
|
||||
|
||||
const onPaneClick = useCallback(() => {
|
||||
|
||||
Reference in New Issue
Block a user