Skip to content

Commit 0b5d40c

Browse files
author
Dan Lee
committed
Added null check in _getValueUsingPath.
1 parent 88bc067 commit 0b5d40c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/patient/PatientRecord.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ class PatientRecord {
5959
let result = item, i;
6060
for (i = 0; i < attributePath.length; i++) {
6161
result = result[attributePath[i]];
62+
if (result === null) return null;
6263
}
6364
return result;
6465
}

0 commit comments

Comments
 (0)