diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-02-27 14:40:15 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-02-27 14:40:15 +0100 |
| commit | c05bfcc2775f0e11db6e856bfcf06d0419c35d54 (patch) | |
| tree | ffd0e9fcf6b476a6198287085a514cfa7940c200 /ui/src/components/props.rs | |
| parent | 4ba86694e393c61107e27c4127efc0455b329524 (diff) | |
| download | jellything-c05bfcc2775f0e11db6e856bfcf06d0419c35d54.tar jellything-c05bfcc2775f0e11db6e856bfcf06d0419c35d54.tar.bz2 jellything-c05bfcc2775f0e11db6e856bfcf06d0419c35d54.tar.zst | |
ui changed before object slices
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) } |