LP1846042 Angular grid filter dropdown improvements
[Evergreen.git] / Open-ILS / src / eg2 / src / app / share / date-select / date-select.component.ts
index 66d363a..d855f6d 100644 (file)
@@ -84,6 +84,7 @@ export class DateSelectComponent implements OnInit, ControlValueAccessor {
     }
 
     isValidDate(dt: NgbDateStruct): dt is NgbDateStruct {
+        if (!dt) { return false; }
         return (<NgbDateStruct>dt).year !== undefined;
     }