Provide project_entry_id for deleted files

This commit is contained in:
mgsloan@gmail.com 2024-11-21 19:23:39 -07:00
parent f34877334e
commit e7acd0df02

View file

@ -3336,11 +3336,7 @@ impl File {
} }
pub fn project_entry_id(&self, _: &AppContext) -> Option<ProjectEntryId> { pub fn project_entry_id(&self, _: &AppContext) -> Option<ProjectEntryId> {
if self.is_deleted { self.entry_id
None
} else {
self.entry_id
}
} }
} }