From 9f95aefd1151b7671583f8c91e59c61ce9540cd4 Mon Sep 17 00:00:00 2001 From: Alexey Kozyurov Date: Thu, 30 Dec 2021 18:58:44 +0300 Subject: [PATCH] Fixed bug with updating local lineage state (#334) --- .../src/redux/reducers/dataentityLineage.reducer.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/odd-platform-ui/src/redux/reducers/dataentityLineage.reducer.ts b/odd-platform-ui/src/redux/reducers/dataentityLineage.reducer.ts index 943502e3d..45b1a29da 100644 --- a/odd-platform-ui/src/redux/reducers/dataentityLineage.reducer.ts +++ b/odd-platform-ui/src/redux/reducers/dataentityLineage.reducer.ts @@ -411,6 +411,12 @@ const reducer = ( state = initialState, action: Action ): DataEntityLineageState => { + localState.allNodes = []; + localState.allGroups = []; + localState.allEdges = []; + localState.excludedIds = new Set(); + localState.groupIds = new Set(); + localState.nodeIds = new Set(); switch (action.type) { case getType(actions.fetchDataEntityDownstreamLineageAction.success): return updateDataEntityLineage(