Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ export class AddPageComponent extends UnsubscribeComponent implements OnInit {
);

this.onSubmit();
window.location.reload();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GuilhermeGabriel
that won't work
you need to wait for the server to be ready again to do that

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I tried a new approach!

}
},
error: (err) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ export class FormBuilderComponent implements OnInit {
localStorage.removeItem(`form:${this.id}`);
this.hasChanges = false;
this.authService.canLogout.next(true);
window.location.reload();
}
},
error: (err) => {
Expand Down