fsc: fix array-callback-return linting warnings

this comit fixes the array-callback warning by changing map to foreach
and return null to the second map
This commit is contained in:
mgold1234 2023-12-26 14:49:50 +02:00 committed by Thomas Lavocat
parent 4763024e68
commit f597b6b854

View file

@ -110,7 +110,7 @@ const FileSystemConfiguration = ({ ...props }) => {
const newRows = [];
const newOrder = [];
fsc.map((r) => {
fsc.forEach((r) => {
const id = uuidv4();
newRows.push({
id,
@ -141,6 +141,7 @@ const FileSystemConfiguration = ({ ...props }) => {
};
}
}
return null;
})
);
}, [rows, itemOrder]);