From fe0735340ac3fe9c7b03ca084ca0c74924d65c41 Mon Sep 17 00:00:00 2001 From: Tobias Reiher <15232394+treiher@users.noreply.github.com> Date: Sun, 20 Oct 2024 10:53:28 +0200 Subject: [PATCH] Fix unnecessary change of page content when accessing options --- frontend/src/page/training_session.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/page/training_session.rs b/frontend/src/page/training_session.rs index e2e29d6..d5550a3 100644 --- a/frontend/src/page/training_session.rs +++ b/frontend/src/page/training_session.rs @@ -1862,7 +1862,7 @@ pub fn view(model: &Model, data_model: &data::Model) -> Node { if model.dialog == Dialog::Hidden { div![ view_title(training_session, data_model), - if model.editing || model.guide.is_some() { + div![if model.editing || model.guide.is_some() { nodes![view_training_session_form(model, data_model)] } else { nodes![ @@ -1871,7 +1871,7 @@ pub fn view(model: &Model, data_model: &data::Model) -> Node { view_muscles(training_session, data_model), common::view_fab("edit", |_| Msg::EditTrainingSession) ] - } + }] ] } else { div![