Merge pull request #3355 from vvlladd28/fixed/decoder-state
Fixed decoder state params
This commit is contained in:
commit
dfbd8c4b45
@ -100,7 +100,7 @@ export abstract class StateControllerComponent implements IStateControllerCompon
|
||||
this.rxSubscriptions.push(this.route.queryParamMap.subscribe((paramMap) => {
|
||||
const dashboardId = this.route.snapshot.params.dashboardId;
|
||||
if (this.dashboardId === dashboardId) {
|
||||
const newState = paramMap.get('state');
|
||||
const newState = decodeURIComponent(paramMap.get('state'));
|
||||
if (this.currentState !== newState) {
|
||||
this.currentState = newState;
|
||||
if (this.inited) {
|
||||
@ -147,7 +147,7 @@ export abstract class StateControllerComponent implements IStateControllerCompon
|
||||
}
|
||||
|
||||
public reInit() {
|
||||
this.currentState = this.route.snapshot.queryParamMap.get('state');
|
||||
this.currentState = decodeURIComponent(this.route.snapshot.queryParamMap.get('state'));
|
||||
this.init();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user