Commit 1e69b167 authored by Peter Leitzen's avatar Peter Leitzen

Ensure that object is present via BatchLoader

parent 290f691c
......@@ -38,7 +38,7 @@ module Resolvers
# that the DesignAtVersion as found by its ID does in fact belong
# to this issue.
def consistent?(dav)
issue.nil? || (dav&.design&.issue_id == issue.id)
issue.nil? || (dav.present? && dav.design&.issue_id == issue.id)
end
def issue
......
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