diff --git a/graph-ui/src/galaxy/GalaxyPanel.background.test.tsx b/graph-ui/src/galaxy/GalaxyPanel.background.test.tsx index 92cbb4e43..55d878cca 100644 --- a/graph-ui/src/galaxy/GalaxyPanel.background.test.tsx +++ b/graph-ui/src/galaxy/GalaxyPanel.background.test.tsx @@ -51,7 +51,7 @@ it('returns a standalone hierarchy selection to the overall Galaxy without stale await act(async () => select.click()); const evidence = JSON.parse(onSelectionEvidence.mock.lastCall![0].text).evidence; expect(evidence.selected.scope).toMatchObject({ kind: 'node', id: 1, name: 'node1' }); - expect(evidence.scope).toMatchObject({ depth: 0, direction: 'both', edgeTypes: 'all' }); + expect(evidence.scope).toMatchObject({ depth: 1, direction: 'both', edgeTypes: 'all' }); expect(evidence.limitations.state).not.toBe('complete-indexed-scope'); await act(async () => host.querySelector('[data-mode="hierarchy"]')!.click()); expect(globalThis.__atlasGalaxy?.mode).toBe('hierarchy'); diff --git a/graph-ui/src/galaxy/GalaxyPanel.tsx b/graph-ui/src/galaxy/GalaxyPanel.tsx index 252030257..3590cc852 100644 --- a/graph-ui/src/galaxy/GalaxyPanel.tsx +++ b/graph-ui/src/galaxy/GalaxyPanel.tsx @@ -2215,7 +2215,7 @@ export default function GalaxyPanel(props: GalaxyPanelProps): JSX.Element { } {props.workspaceExpanded && kind.type)} selected={traceTypes} onChange={changeTraceTypes} />} - {scope.depth} {scope.depth === 1 ? 'layer' : 'layers'}