Skip to content

Commit

Permalink
Fix request export for default-unit
Browse files Browse the repository at this point in the history
  • Loading branch information
awwaiid committed Sep 1, 2024
1 parent d58a312 commit 09bc851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/exports/export_request_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def fetch_item_name(item_request)
# off of the real item. Weirdly we do this because the item might have
# been deleted historically without deleting the request.
if item_request.item
if Flipper.enabled?(:enable_packs) && item_request.request_unit
if Flipper.enabled?(:enable_packs) && item_request.request_unit.present?
"#{item_request.name} - #{item_request.request_unit}"
else
item_request.name
Expand Down

0 comments on commit 09bc851

Please sign in to comment.