diff --git a/plugins/recruit-resources/src/components/CreateApplication.svelte b/plugins/recruit-resources/src/components/CreateApplication.svelte index 05a687c621..3f0d05d251 100644 --- a/plugins/recruit-resources/src/components/CreateApplication.svelte +++ b/plugins/recruit-resources/src/components/CreateApplication.svelte @@ -91,7 +91,8 @@ modifiedOn: Date.now(), modifiedBy: '' as Ref, startDate: null, - dueDate: null + dueDate: null, + createOn: Date.now() } const dispatch = createEventDispatcher() @@ -149,7 +150,8 @@ assignee: doc.assignee, rank: calcRank(lastOne, undefined), startDate: null, - dueDate: null + dueDate: null, + createOn: Date.now() }, doc._id ) @@ -181,7 +183,8 @@ modifiedOn: Date.now(), modifiedBy: '' as Ref, startDate: null, - dueDate: null + dueDate: null, + createOn: Date.now() } } } diff --git a/plugins/view-resources/src/components/EnumEditor.svelte b/plugins/view-resources/src/components/EnumEditor.svelte index 8f754e031e..77fe72d35f 100644 --- a/plugins/view-resources/src/components/EnumEditor.svelte +++ b/plugins/view-resources/src/components/EnumEditor.svelte @@ -34,9 +34,10 @@ _id: type.of }, (res) => { - items = res[0]?.enumValues?.map((p) => { - return { id: p, label: p } - }) + items = + res[0]?.enumValues?.map((p) => { + return { id: p, label: p } + }) ?? [] }, { limit: 1 } )