Function: rowToHistoryEntryOrUndefined()
rowToHistoryEntryOrUndefined(
row:HistoryRow|undefined):StatusHistory|undefined
Defined in: electron/services/database/utils/historyMapper.ts:261
Converts a database row to a StatusHistory object, or returns
undefined if the row is not present.
Parameters
row
The database row to convert, or undefined.
HistoryRow | undefined
Returns
StatusHistory | undefined
The mapped StatusHistory object, or undefined if the row is
not present.
Remarks
Useful for optional row lookups where the row may be missing.
Example
const entry = rowToHistoryEntryOrUndefined(optionalRow);