Skip to content

Commit

Permalink
Fix empty notes not being deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
payten committed Apr 22, 2021
1 parent 0745379 commit 0efa419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/model/spreadsheet_bulk_updater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def process_row(row, ao, ao_json, column_by_path)
record_changed = apply_instance_updates(row, ao_json, instance_updates_by_index) || record_changed

if SpreadsheetBulkUpdater.apply_deletes?
record_changed ||= delete_empty_notes(ao_json)
record_changed = delete_empty_notes(ao_json) || record_changed
end

# Apply changes to the Archival Object!
Expand Down

0 comments on commit 0efa419

Please sign in to comment.