Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 14274 | Rev 14276 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 14274 Rev 14275
Línea 57... Línea 57...
57
			...data,
57
			...data,
58
			...location,
58
			...location,
59
			last_date: year,
59
			last_date: year,
60
			status: isActive ? 'a' : 'i'
60
			status: isActive ? 'a' : 'i'
61
		}
61
		}
62
		console.log(location)
-
 
63
		if (!location) {
62
		if (!location.formatted_address) {
64
			// locationRef.current.focus();
63
			// locationRef.current.focus();
65
			dispatch(addNotification({
64
			dispatch(addNotification({
66
						style: 'error',
65
						style: 'error',
67
						msg: 'Es requerida una ubicación'
66
						msg: 'Es requerida una ubicación'
68
					}))
67
					}))
Línea 123... Línea 122...
123
							location_search:respData.location_search,
122
							location_search:respData.location_search,
124
							longitude:respData.longitude,
123
							longitude:respData.longitude,
125
							city1:respData.city1,
124
							city1:respData.city1,
126
							city2:respData.city2,
125
							city2:respData.city2,
127
							country:respData.country,
126
							country:respData.country,
-
 
127
							postal_code:respData.postal_code,
-
 
128
							state:respData.state
128
						})
129
						})
129
						setYear(respData.last_date)
130
						setYear(respData.last_date)
130
						respData.status === 'a' ? setIsActive(true) : setIsActive(false)
131
						respData.status === 'a' ? setIsActive(true) : setIsActive(false)
Línea 131... Línea 132...
131
 
132