- update unitItems with lookup

This commit is contained in:
Shemy Gan committed 2024-10-24 14:40:04 -04:00
1 parent fd261d3eb1
commit 1526b50fd2
1 file changed
+4 -5
+4 -5
View File
@@ -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;