mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-22 14:54:38 +08:00
Fix import for old activities
This commit is contained in:
parent
b0432fd10b
commit
0a2970c18d
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ class TeamImporter
|
|||
activity.subject_id = mappings[activity.subject_id]
|
||||
end
|
||||
end
|
||||
if activity.values['message_items'].present?
|
||||
if activity.values&.dig(:message_items).present?
|
||||
activity.values['message_items'].each_value do |item|
|
||||
next unless item['type']
|
||||
|
||||
|
|
Loading…
Reference in a new issue