mirror of
https://github.com/Sternenlabor/csv-to-fabaccess-user-toml.git
synced 2025-03-12 06:51:41 +01:00
filter also ""
This commit is contained in:
parent
3c97e3a831
commit
072bbf2335
2
run.mjs
2
run.mjs
@ -33,7 +33,7 @@ async function readCSV(filePath) {
|
|||||||
|
|
||||||
function getGroups(u) {
|
function getGroups(u) {
|
||||||
let groups = u.Gruppen.split(', ')
|
let groups = u.Gruppen.split(', ')
|
||||||
groups = groups.filter((item) => item !== 'Mitglieder-Infos')
|
groups = groups.filter((item) => item !== 'Mitglieder-Infos' && item !== '')
|
||||||
return ['User', ...groups]
|
return ['User', ...groups]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user