diff --git a/src/main/java/com/ModeratorElection/MainView.java b/src/main/java/com/ModeratorElection/MainView.java index f946c33..40bd714 100644 --- a/src/main/java/com/ModeratorElection/MainView.java +++ b/src/main/java/com/ModeratorElection/MainView.java @@ -12,6 +12,7 @@ import com.vaadin.flow.component.notification.Notification; import com.vaadin.flow.component.notification.NotificationVariant; import com.vaadin.flow.component.orderedlayout.HorizontalLayout; import com.vaadin.flow.component.orderedlayout.VerticalLayout; +import com.vaadin.flow.router.PreserveOnRefresh; import com.vaadin.flow.router.Route; import com.vaadin.flow.router.PageTitle; import org.springframework.beans.factory.annotation.Value; @@ -23,6 +24,7 @@ import java.util.List; @Route("") @PageTitle("Moderatorenwahl") +@PreserveOnRefresh @Configuration public class MainView extends VerticalLayout {