diff --git a/src/module/notes/header.rs b/src/module/notes/header.rs index 3f27af38..76fc1880 100644 --- a/src/module/notes/header.rs +++ b/src/module/notes/header.rs @@ -57,3 +57,8 @@ pub fn get_name_from_header(header: &FHD) -> String { headerhelpers::data::get_name_from_header(header).unwrap_or(String::from("")) } +pub fn rebuild_header_with_tags(header: &FHD, tags: Vec) -> Option { + let name = get_name_from_header(header); + Some(build_header(name, tags)) +} +