@hmcts/ccd-case-ui-toolkit 7.4.3 → 7.4.4-5290-rc-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14766,6 +14766,9 @@ class CaseFileViewFieldComponent {
14766
14766
  ngAfterViewInit() {
14767
14767
  const slider = this.elementRef.nativeElement.querySelector('.slider');
14768
14768
  const documentTreeContainer = this.elementRef.nativeElement.querySelector('.document-tree-container');
14769
+ if (!slider || !documentTreeContainer) {
14770
+ return;
14771
+ }
14769
14772
  const mousedown$ = fromEvent(slider, 'mousedown');
14770
14773
  const mousemove$ = fromEvent(document, 'mousemove');
14771
14774
  const mouseup$ = fromEvent(document, 'mouseup');