Remove useless non-null assertion in Date/Picker.ts
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 30 Oct 2020 09:48:42 +0000 (10:48 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 30 Oct 2020 09:50:36 +0000 (10:50 +0100)
wcfsetup/install/files/ts/WoltLabSuite/Core/Date/Picker.ts

index 3ae49d1d20d4ed082a58297cfb8fa8e32581a084..f6ac53e26582389b3831058ba6a5301c259ada6f 100644 (file)
@@ -608,7 +608,7 @@ function maintainFocus(event: FocusEvent): void {
       sibling.focus();
       _wasInsidePicker = false;
     } else {
-      _datePicker!.querySelector<HTMLElement>(".previous")!.focus();
+      _datePicker.querySelector<HTMLElement>(".previous")!.focus();
     }
   } else {
     _wasInsidePicker = true;