{
} else {
setSelectedEdge(undefined);
setActiveNode(node);
- const sourceTypeNode = node.data.node as SourceType;
- setSelectedNode({
- ...sourceTypeNode,
- // we are getting deleted as a string instead of boolean from API so need to handle it like this
- deleted: isDeleted(sourceTypeNode.deleted),
- });
+ setSelectedNode(node.data.node as SourceType);
setIsDrawerOpen(true);
handleLineageTracing(node);
}
diff --git a/openmetadata-ui/src/main/resources/ui/src/utils/EntityLineageUtils.tsx b/openmetadata-ui/src/main/resources/ui/src/utils/EntityLineageUtils.tsx
index fd80600900b1..90c4e3c2d396 100644
--- a/openmetadata-ui/src/main/resources/ui/src/utils/EntityLineageUtils.tsx
+++ b/openmetadata-ui/src/main/resources/ui/src/utils/EntityLineageUtils.tsx
@@ -90,7 +90,7 @@ import { ColumnLineage, LineageDetails } from '../generated/type/entityLineage';
import { EntityReference } from '../generated/type/entityReference';
import { TagSource } from '../generated/type/tagLabel';
import { addLineage, deleteLineageEdge } from '../rest/miscAPI';
-import { getPartialNameFromTableFQN } from './CommonUtils';
+import { getPartialNameFromTableFQN, isDeleted } from './CommonUtils';
import { getEntityName, getEntityReferenceFromEntity } from './EntityUtils';
import Fqn from './Fqn';
import { jsonToCSV } from './StringsUtils';
@@ -728,6 +728,9 @@ export const createNodes = (
? node.type
: getNodeType(edgesData, node.id);
+ // we are getting deleted as a string instead of boolean from API so need to handle it like this
+ node.deleted = isDeleted(node.deleted);
+
return {
id: `${node.id}`,
sourcePosition: Position.Right,