- update unitItems with lookup
This commit is contained in:
1 parent
fd261d3eb1
commit
1526b50fd2
1 file changed
+4
-5
@@ -81,15 +81,14 @@ const AdvancedSettings = ({ isAdmin }) => {
|
||||
warn: 4,
|
||||
};
|
||||
|
||||
const unitItems = [
|
||||
{ _id: "d", name: "days" },
|
||||
{ _id: "h", name: "hours" }
|
||||
];
|
||||
|
||||
const unitItemLookup = {
|
||||
days: "d",
|
||||
hours: "h",
|
||||
};
|
||||
const unitItems = Object.keys(unitItemLookup).map((key) => ({
|
||||
_id: unitItemLookup[key],
|
||||
name: key,
|
||||
}));
|
||||
|
||||
const handleLogLevel = (e) => {
|
||||
const id = e.target.value;
|
||||
|
||||
Reference in new issue
Block a user