[pdm-devel] [PATCH datacenter-manager v3 06/18] ui: dashboard types: add missing 'default' to de-serialization
Shannon Sterz
s.sterz at proxmox.com
Mon Nov 17 15:59:01 CET 2025
On Mon Nov 17, 2025 at 1:44 PM CET, Dominik Csapak wrote:
> otherwise a layout with now rows can be serialized, but not
nit: typo, now -> no rows
> deserialized.
>
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
> ui/src/dashboard/types.rs | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/ui/src/dashboard/types.rs b/ui/src/dashboard/types.rs
> index c79c38ab..3b018b6e 100644
> --- a/ui/src/dashboard/types.rs
> +++ b/ui/src/dashboard/types.rs
> @@ -17,7 +17,7 @@ pub struct ViewTemplate {
> #[serde(tag = "layout-type")]
> pub enum ViewLayout {
> Rows {
> - #[serde(skip_serializing_if = "Vec::is_empty")]
> + #[serde(default, skip_serializing_if = "Vec::is_empty")]
> rows: Vec<Vec<RowWidget>>,
> },
> }
More information about the pdm-devel
mailing list