fix errors de llamado de variables
This commit is contained in:
parent
b213900733
commit
b35666ee5b
|
@ -125,7 +125,7 @@ const AreasComunes = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const deleteSelectedCommonAreas = () => {
|
const deleteSelectedCommonAreas = () => {
|
||||||
let _commonareas = commonAreaList.filter(
|
let _common_areas = commonAreaList.filter(
|
||||||
(val) => !selectedCommonAreas.includes(val),
|
(val) => !selectedCommonAreas.includes(val),
|
||||||
);
|
);
|
||||||
selectedCommonAreas.map((item) => {
|
selectedCommonAreas.map((item) => {
|
||||||
|
@ -140,7 +140,7 @@ const AreasComunes = () => {
|
||||||
_common_areas = _common_areas.filter(
|
_common_areas = _common_areas.filter(
|
||||||
(val) => val.status != -1,
|
(val) => val.status != -1,
|
||||||
)
|
)
|
||||||
setCommonAreaList(_commonareas);
|
setCommonAreaList(_common_areas);
|
||||||
setDeleteCommonAreasDialog(false);
|
setDeleteCommonAreasDialog(false);
|
||||||
setSelectedCommonAreas(null);
|
setSelectedCommonAreas(null);
|
||||||
toast.current.show({
|
toast.current.show({
|
||||||
|
|
Loading…
Reference in New Issue