Merge pull request #935 from mirumee/SALEOR-1756-error-when-trying-to-save-uncomplete-publish-date

Fix bug with uncomplete publish date
This commit is contained in:
Jakub Majorek 2021-01-07 16:29:41 +01:00 committed by GitHub
commit 82772f0b08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -230,11 +230,11 @@ const Channel: React.FC<ChannelProps> = ({
)
: ""
}
value={publicationDate ? publicationDate : ""}
value={publicationDate || ""}
onChange={e =>
onChange(id, {
...formData,
publicationDate: e.target.value
publicationDate: e.target.value || null
})
}
className={classes.date}