push
All checks were successful
CI/CD Pipeline / test (push) Successful in 2m2s

This commit is contained in:
philipp 2024-02-17 18:05:46 +01:00
parent cdcdef9721
commit 91b5ac9c09

View File

@ -63,6 +63,10 @@ impl Liste {
}
pub(crate) fn get_content(&self) -> Content {
Content::List(self.content.clone())
if self.content.len() == 1 {
self.content[0].clone()
} else {
Content::List(self.content.clone())
}
}
}