diff --git a/app/models/fs/message_draft.rb b/app/models/fs/message_draft.rb index df66f84a..18b9d9ab 100644 --- a/app/models/fs/message_draft.rb +++ b/app/models/fs/message_draft.rb @@ -32,7 +32,7 @@ def self.create_and_validate_with_fs_form(form_files: [], author:, fs_client: Fs form_files.each do |form_file| form_content = form_file.read.force_encoding("UTF-8") form_information = fs_client.api.parse_form(form_content) - dic = form_information['subject'] + dic = form_information['subject']&.strip fs_form_identifier = form_information['form_identifier'] box = Fs::Box.with_enabled_message_drafts_import.find_by("settings ->> 'dic' = ?", dic)