Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 15106 Rev 15107
Línea 37... Línea 37...
37
		const formData = new FormData()
37
		const formData = new FormData()
38
		const submitData = {
38
		const submitData = {
39
			...data,
39
			...data,
40
			...location,
40
			...location,
41
			last_date: action === 'edit'
41
			last_date: action === 'edit'
42
				? year
42
				? new Intl.DateTimeFormat('en').format(new Date(year))
43
				: new Intl.DateTimeFormat({ year: 'numeric', month: 'numeric', day: 'numeric' }).format(year),
43
				: new Intl.DateTimeFormat('es').format(year),
44
			status: isActive ? 'a' : 'i'
44
			status: isActive ? 'a' : 'i'
45
		}
45
		}
46
		if (!location.formatted_address) {
46
		if (!location.formatted_address) {
47
			// locationRef.current.focus();
47
			// locationRef.current.focus();
48
			dispatch(addNotification({
48
			dispatch(addNotification({