Fix history event handler accumulation
This commit is contained in:
parent
e6331b20db
commit
f01d300e89
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Warning",
|
||||
"Orleans": "Warning",
|
||||
"System": "Information",
|
||||
"Microsoft": "Warning"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue