pl-fe: marker can be undefined

Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
mkljczk
2024-12-27 20:12:27 +01:00
parent 8fcd728591
commit 4c173673db

View File

@ -104,7 +104,7 @@ const deleteByStatus = (state: State, statusId: string) =>
});
const importMarker = (state: State, marker: Markers) => {
const lastReadId = marker.notifications.last_read_id || -1 as string | -1;
const lastReadId = marker.notifications?.last_read_id || -1 as string | -1;
if (!lastReadId) {
return state;