Commit cd22000a authored by Matthias Kaeppler's avatar Matthias Kaeppler

Null safe access to import_state

parent eea793bc
......@@ -5,7 +5,7 @@ module API
class ProjectImportStatus < ProjectIdentity
expose :import_status
expose :correlation_id do |project, _options|
project.import_state.correlation_id
project.import_state&.correlation_id
end
# TODO: Use `expose_nil` once we upgrade the grape-entity gem
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment