Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 12991 Rev 12992
Línea 84... Línea 84...
84
			status: 0
84
			status: 0
85
		}])
85
		}])
86
	}
86
	}
Línea 87... Línea 87...
87
 
87
 
-
 
88
	const editSection = (name, text, slug) => {
88
	const editSection = (name, text, slug) => {
89
		setContent(current =>
89
		setContent(prev => prev.map(contentSection => {
90
			current.map(currentSection => {
-
 
91
				if (currentSection.slug_section === slug) {
-
 
92
					return { ...currentSection, name: name, text: text }
Línea 90... Línea 93...
90
			if (contentSection.slug_section === slug.slug_section) {
93
				}
91
 
94
 
92
				return { ...contentSection, name: name, text: text }
95
				return currentSection
93
			}
96
			})
Línea 94... Línea 97...
94
		}))
97
		)
95
	}
98
	}
96
 
99