Fix when the object from db is empty

This commit is contained in:
Sofiya Tepikin
2022-04-24 21:48:36 +02:00
parent 95b0cc5059
commit bce21ff9a9
+1 -1
View File
@@ -59,7 +59,7 @@ export function closeDb() {
} }
function mapRealmObjToJsObj(realmObj) { function mapRealmObjToJsObj(realmObj) {
return JSON.parse(JSON.stringify(realmObj)) return realmObj ? JSON.parse(JSON.stringify(realmObj)) : realmObj
} }
export function getBleedingDaysSortedByDate() { export function getBleedingDaysSortedByDate() {