From af5058d0f175422d100782d3ddd55130ae2260e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Barbeau?= Date: Wed, 2 Oct 2019 09:00:52 -0400 Subject: [PATCH] fix(search-results-details): fix flexible state --- .../search-results-tool.component.html | 2 +- .../search-results-tool/search-results-tool.component.ts | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/integration/src/lib/search/search-results-tool/search-results-tool.component.html b/packages/integration/src/lib/search/search-results-tool/search-results-tool.component.html index 6cbb9834ae..0c575fa3fe 100644 --- a/packages/integration/src/lib/search/search-results-tool/search-results-tool.component.html +++ b/packages/integration/src/lib/search/search-results-tool/search-results-tool.component.html @@ -12,7 +12,7 @@

{{ 'igo.integration.searchResultsTool.noResults' | translate }}

collapsedMobile="calc(100% - 58px)" expanded="60%" expandedMobile="60%" - [state]="topPanelState"> + [state]="(feature$ | async) ? topPanelState : 'initial'">
e.state.focused) .pipe( - map(element => { - this.feature = element ? (element.entity.data as Feature) : undefined; - !this.feature - ? (this.topPanelState = 'initial') - : (this.topPanelState = 'expanded'); - return this.feature; - }) + map(element => (element ? (element.entity.data as Feature) : undefined)) ); }