Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 12836 Rev 12846
Línea 67... Línea 67...
67
	const closeSectionModal = () => {
67
	const closeSectionModal = () => {
68
		setIsShowSectionModal(false)
68
		setIsShowSectionModal(false)
69
		setSectionSelected(INITIAL_SECTION)
69
		setSectionSelected(INITIAL_SECTION)
70
	}
70
	}
Línea 71... Línea 71...
71
 
71
 
72
	const addSection = ({ name, text }) => {
72
	const addSection = async ({ name, text }) => {
73
		const uuid = new Date().getTime()
73
		const uuid = new Date().getTime()
Línea 74... Línea 74...
74
		let position = 0
74
		let position = 0
75
 
75
 
76
		content.forEach((section) => {
76
		await content.forEach((section) => {
77
			if (position < section.position) {
77
			if (position < section.position) {
78
				position = section.position
78
				position = section.position
79
			}
79
			}