From 5de3e6622f8e22744e7a5325b8c4ab3771e1df65 Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 16 Apr 2024 07:51:22 +0200 Subject: [PATCH] fix(web): show summary row only if present quite jank way to do it but im tired --- web/src/lib.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/web/src/lib.rs b/web/src/lib.rs index 80dd022..11c655b 100644 --- a/web/src/lib.rs +++ b/web/src/lib.rs @@ -279,9 +279,15 @@ pub fn Object(object: serde_json::Value) -> impl IntoView { view! {
- - - + {move || if !summary.is_empty() { + view! { + + + + }.into_view() + } else { + view! { }.into_view() + }}
{summary}
{summary.clone()}
{ content.into_iter().map(|x| view! {

{x}

}).collect_view()