Fix duplicate saved search categories in user profile
This commit is contained in:
@@ -798,7 +798,8 @@ class User < ActiveRecord::Base
|
|||||||
categories.compact!
|
categories.compact!
|
||||||
categories.unshift(SavedSearch::UNCATEGORIZED_NAME)
|
categories.unshift(SavedSearch::UNCATEGORIZED_NAME)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
categories.uniq!
|
||||||
categories
|
categories
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user