Fix Widgets Home y Logos Overrides
This commit is contained in:
@@ -53,6 +53,7 @@ export const LogoOverridesManager = () => {
|
||||
const currentLogo = useMemo(() => {
|
||||
if (!selectedAgrupacion || !selectedCategoria) return '';
|
||||
const ambitoId = getAmbitoId();
|
||||
|
||||
return logos.find(l =>
|
||||
l.eleccionId === selectedEleccion.value &&
|
||||
l.ambitoGeograficoId === ambitoId &&
|
||||
@@ -64,7 +65,10 @@ export const LogoOverridesManager = () => {
|
||||
useEffect(() => { setLogoUrl(currentLogo || ''); }, [currentLogo]);
|
||||
|
||||
const handleSave = async () => {
|
||||
if (!selectedAgrupacion || !selectedCategoria) return;
|
||||
if (!selectedAgrupacion || !selectedCategoria) {
|
||||
alert("Por favor, seleccione una agrupación y una categoría.");
|
||||
return;
|
||||
}
|
||||
const newLogoEntry: LogoAgrupacionCategoria = {
|
||||
id: 0,
|
||||
eleccionId: selectedEleccion.value,
|
||||
|
||||
Reference in New Issue
Block a user