Skip to content

Commit

Permalink
Fix incorrect check of arrays in index settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ellnix committed Feb 19, 2024
1 parent c7654a9 commit 03a8daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/meilisearch-rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ def meilisearch_settings_changed?(server_state, user_configuration)
if user.is_a?(Hash) && server.is_a?(Hash)
meilisearch_settings_changed?(server, user)
elsif user.is_a?(Array) && server.is_a?(Array)
user.map(&:to_s) != server.map(&:to_s)
user.map(&:to_s).sort! != server.map(&:to_s).sort!
else
user.to_s != server.to_s
end
Expand Down

0 comments on commit 03a8daa

Please sign in to comment.