diff --git a/src/editor/editor.tsx b/src/editor/editor.tsx index ef9a3e8a8f3b241e099768409bfdb00d869371fb..7310846b2c25b5d830026dd46dc3482cc1d50afa 100644 --- a/src/editor/editor.tsx +++ b/src/editor/editor.tsx @@ -171,6 +171,7 @@ export class Editor extends React.PureComponent<any, stateTypes> { * @returns Promise with boolean value that is true, if successful. */ public loadSpace(spaceId: string): Promise<boolean> { + this.selectNodes([]); // Clear selection return loadGraphJson(spaceId) .then((data: GraphData) => { // Loading space might have created a new space, if requested space was not available