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