Skip to content

Commit 13d40cd

Browse files
Sean CrimSean Crim
authored andcommitted
modified null check for checkins in entities and added todo to expand the null check when the checkin object changes
1 parent 37bae2e commit 13d40cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ const processResults = async (results, modelType) => {
122122
case "Entity":
123123
let processedResults = [];
124124
for(let result of results){
125-
if(result["checkIn"].checkIns.length !== 0) {
125+
//todo expand conditional checking as checkin object becomes more mature
126+
if(result["checkIn"] !== null) {
126127
result["checkIn"] = result["checkIn"].checkIns[0];
127128
}
128129
processedResults = [...processedResults, result];

0 commit comments

Comments
 (0)