fix type issue

This commit is contained in:
marlon-erler
2026-09-27 02:22:51 +02:00
parent 01fefa0bb0
commit 248cd65e79
+1 -1
View File
@@ -7,7 +7,7 @@ export default class ContactsModel {
loadContacts = (): [string, string][] => { loadContacts = (): [string, string][] => {
const contactIds: string[] = this.storageModel.list([StorageModelSubPaths.ContactsModel]); const contactIds: string[] = this.storageModel.list([StorageModelSubPaths.ContactsModel]);
const contacts: [string, string][] = contactIds.map(id => [id, this.storageModel.read(this.getContactPath(id))]); const contacts: [string, string][] = contactIds.map(id => [id, this.storageModel.read(this.getContactPath(id)) ?? "?"]);
return contacts; return contacts;
} }