Merge branch 'main' into glitch-soc/merge-upstream

This commit is contained in:
Claire
2021-08-11 16:41:59 +02:00
6 changed files with 11 additions and 6 deletions

View File

@@ -299,7 +299,11 @@ class Account < ApplicationRecord
end
def fields
(self[:fields] || []).map { |f| Field.new(self, f) }
(self[:fields] || []).map do |f|
Field.new(self, f)
rescue
nil
end.compact
end
def fields_attributes=(attributes)