Skip to content

Commit 593af7c

Browse files
committed
🐛 server 변경시 토폴로지 설정이 존재 시 에러가 나는 현상 수정
1 parent 23d1fd0 commit 593af7c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/Controller/Controller.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,10 @@ class Controller extends Component {
270270
common.setTargetServerToUrl(this.props, config);
271271
common.replaceAllLocalSettingsForServerChange(currentServer, this.props, config);
272272
common.clearAllUrlParamOfPaper(this.props, config);
273+
//- server가 바뀌어 쓰므로 해당 설정이 같이 삭제 되어야함
273274
localStorage.removeItem("selectedObjects");
275+
localStorage.removeItem("topologyOptions");
276+
localStorage.removeItem("topologyPosition");
274277
window.location.reload();
275278

276279
};

0 commit comments

Comments
 (0)