mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
requested changes
This commit is contained in:
parent
4b5437a882
commit
d114250ebb
4 changed files with 23 additions and 9 deletions
|
@ -276,9 +276,7 @@ impl Schema {
|
|||
|
||||
pub fn is_displayed(&self, id: FieldId) -> bool {
|
||||
match self.displayed {
|
||||
OptionAll::Some(ref v) => {
|
||||
v.get(&id).is_some()
|
||||
}
|
||||
OptionAll::Some(ref v) => v.contains(&id),
|
||||
OptionAll::All => true,
|
||||
OptionAll::None => false,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue