Skip to content

Commit 8511f6e

Browse files
committed
Show connected edges instantly
1 parent 6c152dd commit 8511f6e

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

openmetadata-ui/src/main/resources/ui/src/components/Entity/EntityLineage/CustomNode.utils.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ export const getColumnContent = (
236236
data-testid={`column-${fullyQualifiedName}`}
237237
key={fullyQualifiedName}
238238
onClick={handleClick}
239+
onMouseDown={handleClick}
239240
onMouseEnter={handleMouseEnter}
240241
onMouseLeave={handleMouseLeave}>
241242
{getColumnHandle(

openmetadata-ui/src/main/resources/ui/src/context/LineageProvider/LineageProvider.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,6 +1271,18 @@ const LineageProvider = ({ children }: LineageProviderProps) => {
12711271
.finally(() => {
12721272
setStatus('initial');
12731273
setLoading(false);
1274+
if (!tracedColumns.includes(params.sourceHandle as string)) {
1275+
setTracedColumns((prev) => [
1276+
...prev,
1277+
params.sourceHandle as string,
1278+
]);
1279+
}
1280+
if (!tracedColumns.includes(params.targetHandle as string)) {
1281+
setTracedColumns((prev) => [
1282+
...prev,
1283+
params.targetHandle as string,
1284+
]);
1285+
}
12741286
});
12751287
}
12761288
},

0 commit comments

Comments
 (0)