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:
commit
82772f0b08
1 changed files with 2 additions and 2 deletions
|
@ -230,11 +230,11 @@ const Channel: React.FC<ChannelProps> = ({
|
||||||
)
|
)
|
||||||
: ""
|
: ""
|
||||||
}
|
}
|
||||||
value={publicationDate ? publicationDate : ""}
|
value={publicationDate || ""}
|
||||||
onChange={e =>
|
onChange={e =>
|
||||||
onChange(id, {
|
onChange(id, {
|
||||||
...formData,
|
...formData,
|
||||||
publicationDate: e.target.value
|
publicationDate: e.target.value || null
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
className={classes.date}
|
className={classes.date}
|
||||||
|
|
Loading…
Reference in a new issue