Skip to content
Snippets Groups Projects
Commit 443f6761 authored by Benedikt Heinrichs's avatar Benedikt Heinrichs
Browse files

Update: Discipline & Organization null checks (coscine/issues#1195)

parent ae479400
Branches Topic/1195-stubCreation
Tags
3 merge requests!58Product/1183 stub creation,!57Update: Discipline & Organization null checks,!55Sprint/2020 22
...@@ -614,8 +614,8 @@ export default Vue.extend({ ...@@ -614,8 +614,8 @@ export default Vue.extend({
this.form.StartDate = new Date(data.startDate); this.form.StartDate = new Date(data.startDate);
this.startDateSelected(new Date(this.form.StartDate)); this.startDateSelected(new Date(this.form.StartDate));
this.form.EndDate = new Date(data.endDate); this.form.EndDate = new Date(data.endDate);
this.form.Discipline = data.disciplines; this.form.Discipline = data.disciplines ? data.disciplines : [];
this.form.Organization = data.organizations; this.form.Organization = data.organizations ? data.organizations : [];
const keywords = data.keywords ? data.keywords.split(';') : []; const keywords = data.keywords ? data.keywords.split(';') : [];
this.form.Keywords = keywords; this.form.Keywords = keywords;
this.form.Visibility = data.visibility; this.form.Visibility = data.visibility;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment