diff --git a/app/routes/inactivities.tsx b/app/routes/inactivities.tsx
index 4e8d0b8..31d60f4 100644
--- a/app/routes/inactivities.tsx
+++ b/app/routes/inactivities.tsx
@@ -135,17 +135,17 @@ export default function () {
Decisions:
Approved: $
- {Object.keys(currentInactivity.decisions).filter(
+ {Object.keys(currentInactivity.decisions ?? {}).filter(
(d) => currentInactivity.decisions[d],
)}
Denied: $
- {Object.keys(currentInactivity.decisions).filter(
+ {Object.keys(currentInactivity.decisions ?? {}).filter(
(d) => !currentInactivity.decisions[d],
)}
Pending: $
- {currentInactivity.departments.filter(
+ {currentInactivity.departments?.filter(
(d: "DM" | "ET" | "FM" | "WM") =>
typeof currentInactivity.decisions[d] === "undefined",
)}