Skip to content

Commit c65c4d6

Browse files
dropdown reset value
1 parent 04303a9 commit c65c4d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

frontend/src/components/Graph/GraphViewModal.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ const GraphViewModal: React.FunctionComponent<GraphViewModalProps> = ({
8989
setRelationships([]);
9090
setAllNodes([]);
9191
setAllRelationships([]);
92+
setDropdownVal({ label: 'Knowledge Graph', value: queryMap.DocChunkEntities });
9293
};
9394
}, []);
9495

@@ -200,6 +201,7 @@ const GraphViewModal: React.FunctionComponent<GraphViewModalProps> = ({
200201
setGraphType(intitalGraphType);
201202
setNodes([]);
202203
setRelationships([]);
204+
setDropdownVal({ label: 'Knowledge Graph', value: queryMap.DocChunkEntities });
203205
};
204206

205207
// sort the legends in with Chunk and Document always the first two values

0 commit comments

Comments
 (0)