diff --git a/packages/integration/src/lib/search/search-results-tool/search-results-tool.component.ts b/packages/integration/src/lib/search/search-results-tool/search-results-tool.component.ts index 08d330a486..fc01373c31 100644 --- a/packages/integration/src/lib/search/search-results-tool/search-results-tool.component.ts +++ b/packages/integration/src/lib/search/search-results-tool/search-results-tool.component.ts @@ -1,8 +1,4 @@ -import { - Component, - ChangeDetectionStrategy, - Input -} from '@angular/core'; +import { Component, ChangeDetectionStrategy, Input } from '@angular/core'; import { Observable, BehaviorSubject } from 'rxjs'; import { map } from 'rxjs/operators'; import olFormatGeoJSON from 'ol/format/GeoJSON'; @@ -129,10 +125,10 @@ export class SearchResultsToolComponent { } toggleTopPanel() { - if (this.topPanelState === 'collapsed') { - this.topPanelState = 'expanded'; - } else { + if (this.topPanelState === 'expanded') { this.topPanelState = 'collapsed'; + } else { + this.topPanelState = 'expanded'; } } @@ -181,5 +177,4 @@ export class SearchResultsToolComponent { .createAsyncLayer(layerOptions) .subscribe(layer => this.map.addLayer(layer)); } - }