diff --git a/src/designer/elsa-workflows-studio/src/components/screens/workflow-instance-list/elsa-workflow-instance-list-screen/elsa-workflow-instance-list-screen.tsx b/src/designer/elsa-workflows-studio/src/components/screens/workflow-instance-list/elsa-workflow-instance-list-screen/elsa-workflow-instance-list-screen.tsx index fa4db6e43..ace366531 100644 --- a/src/designer/elsa-workflows-studio/src/components/screens/workflow-instance-list/elsa-workflow-instance-list-screen/elsa-workflow-instance-list-screen.tsx +++ b/src/designer/elsa-workflows-studio/src/components/screens/workflow-instance-list/elsa-workflow-instance-list-screen/elsa-workflow-instance-list-screen.tsx @@ -55,6 +55,17 @@ export class ElsaWorkflowInstanceListScreen { i18next: i18n; selectAllCheckboxEl: any; + unlistenRouteChanged: () => void; + + connectedCallback() { + if (!!this.history) + this.unlistenRouteChanged = this.history.listen(e => this.routeChanged(e)); + } + + disconnectedCallback() { + if (!!this.unlistenRouteChanged) + this.unlistenRouteChanged(); + } async componentWillLoad() { this.i18next = await loadTranslations(this.culture, resources); @@ -64,10 +75,8 @@ export class ElsaWorkflowInstanceListScreen { this.selectedWorkflowStatus = this.workflowStatus; this.selectedOrderByState = this.orderBy; - if (!!this.history) { - this.history.listen(e => this.routeChanged(e)); + if (!!this.history) this.applyQueryString(this.history.location.search); - } await this.loadWorkflowBlueprints(); await this.loadWorkflowInstances(); diff --git a/src/samples/server/Elsa.Samples.Server.Host/appsettings.Development.json b/src/samples/server/Elsa.Samples.Server.Host/appsettings.Development.json deleted file mode 100644 index 99281afad..000000000 --- a/src/samples/server/Elsa.Samples.Server.Host/appsettings.Development.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Warning", - "Orleans": "Warning", - "System": "Information", - "Microsoft": "Warning" - } - } -}