diff options
Diffstat (limited to 'ui/src/components/props.rs')
| -rw-r--r-- | ui/src/components/props.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/ui/src/components/props.rs b/ui/src/components/props.rs index 5fa9d3e..e672919 100644 --- a/ui/src/components/props.rs +++ b/ui/src/components/props.rs @@ -9,16 +9,13 @@ use crate::{ format::{format_count, format_duration}, }; use chrono::DateTime; -use jellycommon::{ - jellyobject::{Object, TypedTag}, - *, -}; +use jellycommon::{jellyobject::TypedTag, *}; use jellyui_locale::tr; use std::marker::PhantomData; markup::define! { - Props<'a>(ri: &'a RenderInfo<'a>, nku: Object<'a>, full: bool) { - @let node = nku.get(NKU_NODE).unwrap_or_default(); + Props<'a>(ri: &'a RenderInfo<'a>, nku: &'a Nku<'a>, full: bool) { + @let node = nku.node; .props { @if let Some(dur) = node.get(NO_DURATION) { p { @format_duration(dur) } |