Commit 63b89f04 authored by Diana Stanley's avatar Diana Stanley

Protect against nil due_on value in imported data

parent d24ea868
......@@ -42,7 +42,7 @@ module Gitlab
description: milestone.description,
project_id: project.id,
state: state_for(milestone),
due_date: milestone.due_on.to_date,
due_date: milestone.due_on&.to_date,
created_at: milestone.created_at,
updated_at: milestone.updated_at
}
......
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