More undefined guards
This commit is contained in:
parent
d7cbebcfa1
commit
24b5fc0c73
@ -135,17 +135,17 @@ export default function () {
|
||||
Decisions:
|
||||
<br />
|
||||
Approved: $
|
||||
{Object.keys(currentInactivity.decisions).filter(
|
||||
{Object.keys(currentInactivity.decisions ?? {}).filter(
|
||||
(d) => currentInactivity.decisions[d],
|
||||
)}
|
||||
<br />
|
||||
Denied: $
|
||||
{Object.keys(currentInactivity.decisions).filter(
|
||||
{Object.keys(currentInactivity.decisions ?? {}).filter(
|
||||
(d) => !currentInactivity.decisions[d],
|
||||
)}
|
||||
<br />
|
||||
Pending: $
|
||||
{currentInactivity.departments.filter(
|
||||
{currentInactivity.departments?.filter(
|
||||
(d: "DM" | "ET" | "FM" | "WM") =>
|
||||
typeof currentInactivity.decisions[d] === "undefined",
|
||||
)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user