Skip to content

Commit e66a62b

Browse files
committed
feat: Improve category handling in RepositoryStats creation
1 parent 7bfbc10 commit e66a62b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/jz-module/src/repo/list.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,11 @@ impl AppModule {
143143
description: i.description,
144144
display_image: None,
145145
size: None,
146-
category: None,
146+
category: if let Some(ref cate) = parma.category {
147+
Some(cate.clone())
148+
}else {
149+
None
150+
}
147151
};
148152
let module_stats = RepositoryStats {
149153
runs: None,

0 commit comments

Comments
 (0)