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.
 | 
					 * what is stored in the database.
 | 
				
			||||||
*/
 | 
					*/
 | 
				
			||||||
const timeTypes = [
 | 
					const timeTypes = [
 | 
				
			||||||
 | 
					  {
 | 
				
			||||||
 | 
					    value: 'unknown',
 | 
				
			||||||
 | 
					    label: 'Unknown',
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    value: 'morning',
 | 
					    value: 'morning',
 | 
				
			||||||
    label: 'Morning',
 | 
					    label: 'Morning',
 | 
				
			||||||
@ -161,10 +165,6 @@ const timeTypes = [
 | 
				
			|||||||
    value: 'night',
 | 
					    value: 'night',
 | 
				
			||||||
    label: 'Night',
 | 
					    label: 'Night',
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  {
 | 
					 | 
				
			||||||
    value: 'unknown',
 | 
					 | 
				
			||||||
    label: 'Unknown',
 | 
					 | 
				
			||||||
  },
 | 
					 | 
				
			||||||
];
 | 
					];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/** 
 | 
					/** 
 | 
				
			||||||
@ -215,7 +215,7 @@ class ReportForm extends React.Component {
 | 
				
			|||||||
  state = {
 | 
					  state = {
 | 
				
			||||||
    month: '01',
 | 
					    month: '01',
 | 
				
			||||||
    year: getYear(new Date()),
 | 
					    year: getYear(new Date()),
 | 
				
			||||||
    time: 'morning',
 | 
					    time: 'unknown',
 | 
				
			||||||
    type: 'visual',
 | 
					    type: 'visual',
 | 
				
			||||||
    confidence: '1',
 | 
					    confidence: '1',
 | 
				
			||||||
    desc: '',
 | 
					    desc: '',
 | 
				
			||||||
@ -269,7 +269,7 @@ class ReportForm extends React.Component {
 | 
				
			|||||||
    this.setState({
 | 
					    this.setState({
 | 
				
			||||||
      year: getYear(new Date()),
 | 
					      year: getYear(new Date()),
 | 
				
			||||||
      month: '01',
 | 
					      month: '01',
 | 
				
			||||||
      time: 'morning',
 | 
					      time: 'unknown',
 | 
				
			||||||
      type: 'visual',
 | 
					      type: 'visual',
 | 
				
			||||||
      confidence: '1',
 | 
					      confidence: '1',
 | 
				
			||||||
      desc: '',
 | 
					      desc: '',
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user