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:
parent
4763024e68
commit
f597b6b854
1 changed files with 2 additions and 1 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue