set to first date if null (#2008)

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
Scott Bishel 2022-01-05 14:24:51 -07:00 committed by GitHub
parent 9ed0922e8c
commit cf43caf634
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,7 +62,11 @@ function CenterContent(props: Props) {
property = board?.fields.cardProperties.find((o) => o.type === 'select')
}
const displayProperty = dateDisplayProperty
let displayProperty = dateDisplayProperty
if (!displayProperty && activeView.fields.viewType === 'calendar') {
displayProperty = board.fields.cardProperties.find((o) => o.type === 'date')
}
return (
<CenterPanel
clientConfig={clientConfig}