Skip to content

Commit

Permalink
TSK-1402: use check for null instead of setting undefined
Browse files Browse the repository at this point in the history
Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
  • Loading branch information
ThetaDR committed May 10, 2023
1 parent 980b038 commit 4d356b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/tracker-resources/src/components/CreateIssue.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
estimation: 0,
sprint,
status,
assignee: undefined,
assignee,
labels: [],
parentIssue: parentIssue?._id,
subIssues: []
Expand Down Expand Up @@ -289,7 +289,7 @@
}
function updateAssigneeId (object: IssueDraft, currentProject: Project | undefined) {
if (object.assignee === undefined && currentProject !== undefined) {
if (object.assignee == null && currentProject !== undefined) {
if (currentProject.defaultAssignee !== undefined) {
object.assignee = currentProject.defaultAssignee
} else {
Expand Down Expand Up @@ -729,4 +729,4 @@
}}
/>
</svelte:fragment>
</Card>
</Card>

0 comments on commit 4d356b4

Please sign in to comment.