diff --git a/plugins/board-resources/src/components/presenters/DatePresenter.svelte b/plugins/board-resources/src/components/presenters/DatePresenter.svelte index 9034d61a2a..55b55a46dd 100644 --- a/plugins/board-resources/src/components/presenters/DatePresenter.svelte +++ b/plugins/board-resources/src/components/presenters/DatePresenter.svelte @@ -6,13 +6,11 @@ export let value: CardDate export let isInline: boolean = false - const client = getClient() - const { date } = value - let isChecked = date?.isChecked + let isChecked = value?.isChecked const dispatch = createEventDispatcher() function check () { - if (isInline || isChecked === undefined || date === undefined) return + if (isInline || isChecked === undefined || !value) return dispatch('update', { ...value, isChecked }) }