Commit dfbd8c4b4598fb9fe0d2ee36840f9d7e95096e15
Committed by
GitHub
Merge pull request #3355 from vvlladd28/fixed/decoder-state
Fixed decoder state params
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -100,7 +100,7 @@ export abstract class StateControllerComponent implements IStateControllerCompon | @@ -100,7 +100,7 @@ export abstract class StateControllerComponent implements IStateControllerCompon | ||
100 | this.rxSubscriptions.push(this.route.queryParamMap.subscribe((paramMap) => { | 100 | this.rxSubscriptions.push(this.route.queryParamMap.subscribe((paramMap) => { |
101 | const dashboardId = this.route.snapshot.params.dashboardId; | 101 | const dashboardId = this.route.snapshot.params.dashboardId; |
102 | if (this.dashboardId === dashboardId) { | 102 | if (this.dashboardId === dashboardId) { |
103 | - const newState = paramMap.get('state'); | 103 | + const newState = decodeURIComponent(paramMap.get('state')); |
104 | if (this.currentState !== newState) { | 104 | if (this.currentState !== newState) { |
105 | this.currentState = newState; | 105 | this.currentState = newState; |
106 | if (this.inited) { | 106 | if (this.inited) { |
@@ -147,7 +147,7 @@ export abstract class StateControllerComponent implements IStateControllerCompon | @@ -147,7 +147,7 @@ export abstract class StateControllerComponent implements IStateControllerCompon | ||
147 | } | 147 | } |
148 | 148 | ||
149 | public reInit() { | 149 | public reInit() { |
150 | - this.currentState = this.route.snapshot.queryParamMap.get('state'); | 150 | + this.currentState = decodeURIComponent(this.route.snapshot.queryParamMap.get('state')); |
151 | this.init(); | 151 | this.init(); |
152 | } | 152 | } |
153 | 153 |