mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-15 13:58:36 +02:00
Update crates/milli/src/update/settings.rs
Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
parent
3f655ea20e
commit
d694e312ff
1 changed files with 1 additions and 1 deletions
|
@ -557,7 +557,7 @@ impl<'a, 't, 'i> Settings<'a, 't, 'i> {
|
|||
let old_fields = self.index.user_defined_searchable_fields(self.wtxn)?;
|
||||
let did_change = {
|
||||
let new_fields = fields.iter().map(String::as_str).collect::<Vec<_>>();
|
||||
old_fields.map(|old| new_fields != old).unwrap_or(true)
|
||||
old_fields.is_none_or(|old| new_fields != old)
|
||||
};
|
||||
if !did_change {
|
||||
return Ok(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue