Changed default value for time to 'Unknown'.
This commit is contained in:
parent
85ad71d964
commit
22608cff37
|
@ -145,6 +145,10 @@ const monthTypes = [
|
|||
* what is stored in the database.
|
||||
*/
|
||||
const timeTypes = [
|
||||
{
|
||||
value: 'unknown',
|
||||
label: 'Unknown',
|
||||
},
|
||||
{
|
||||
value: 'morning',
|
||||
label: 'Morning',
|
||||
|
@ -161,10 +165,6 @@ const timeTypes = [
|
|||
value: 'night',
|
||||
label: 'Night',
|
||||
},
|
||||
{
|
||||
value: 'unknown',
|
||||
label: 'Unknown',
|
||||
},
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -215,7 +215,7 @@ class ReportForm extends React.Component {
|
|||
state = {
|
||||
month: '01',
|
||||
year: getYear(new Date()),
|
||||
time: 'morning',
|
||||
time: 'unknown',
|
||||
type: 'visual',
|
||||
confidence: '1',
|
||||
desc: '',
|
||||
|
@ -269,7 +269,7 @@ class ReportForm extends React.Component {
|
|||
this.setState({
|
||||
year: getYear(new Date()),
|
||||
month: '01',
|
||||
time: 'morning',
|
||||
time: 'unknown',
|
||||
type: 'visual',
|
||||
confidence: '1',
|
||||
desc: '',
|
||||
|
|
Loading…
Reference in New Issue