fix(champ): do not reset data on champs without fetch_external_data
This commit is contained in:
parent
6ef969a7d9
commit
702b9dd8b3
8 changed files with 589 additions and 142 deletions
|
@ -282,7 +282,7 @@ class Champ < ApplicationRecord
|
|||
end
|
||||
|
||||
def cleanup_if_empty
|
||||
if persisted? && external_id_changed?
|
||||
if fetch_external_data? && persisted? && external_id_changed?
|
||||
self.data = nil
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue