Fixes
This commit is contained in:
@@ -53,7 +53,7 @@ export const RecentFlights = () => {
|
||||
// Find the first log with a station ID that matches the current row's station ID or use the first log if none match
|
||||
const missionStartLog =
|
||||
missionStartLogs?.find(
|
||||
(log) => log.data.station?.id === row.original.Station.id,
|
||||
(log) => log.data?.station?.id === row.original.Station.id,
|
||||
) || missionStartLogs?.[0];
|
||||
|
||||
const missionEndLog = row.original.Mission.missionLog.find(
|
||||
|
||||
@@ -60,7 +60,7 @@ const Page = () => {
|
||||
// Find the first log with a station ID that matches the current row's station ID or use the first log if none match
|
||||
const missionStartLog =
|
||||
missionStartLogs?.find(
|
||||
(log) => log.data.station?.id === row.original.Station.id,
|
||||
(log) => log.data?.station?.id === row.original.Station.id,
|
||||
) || missionStartLogs?.[0];
|
||||
|
||||
const missionEndLog = row.original.Mission.missionLog.find(
|
||||
|
||||
Reference in New Issue
Block a user