Skip to content

Commit

Permalink
feat: revert form reset for now
Browse files Browse the repository at this point in the history
  • Loading branch information
kungfuboy committed Sep 13, 2022
1 parent c6261cc commit 396db18
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export class WebsocketComponent implements OnInit, OnDestroy {
}
checkTabCanLeave = () => {
if (this.wsStatus === 'disconnect') {
this.resetForm();
// this.resetForm();
return true;
}
return new Promise((resolve) => {
Expand All @@ -285,7 +285,7 @@ export class WebsocketComponent implements OnInit, OnDestroy {
type: 'primary',
onClick: () => {
modal.destroy();
this.resetForm();
// this.resetForm();
// * disconnect ws connect
this.handleConnect('disconnect');
resolve(true);
Expand Down

0 comments on commit 396db18

Please sign in to comment.