1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-07-18 14:04:04 +00:00

Fixed frontend coding style problems

This commit is contained in:
2023-06-11 09:34:00 +02:00
parent 6cc329982a
commit 2ee5c7dadd
27 changed files with 213 additions and 155 deletions

View File

@ -50,7 +50,9 @@
return obj;
}
else if ((typeof obj === 'object') && (obj !== null)) {
return Object.entries(obj).map(([ k, item ]) => ({ ...item, [key]: k }));
return Object.entries(obj).map(([ k, item ]) => {
return { ...item, [key]: k };
});
}
else {
return obj;