Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 303e8ac

Browse files
committed
Fixed route issue with mydspace page
1 parent a1113ab commit 303e8ac

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/app/shared/form/builder/ds-dynamic-form-ui/models/dynamic-group/dynamic-group.components.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class DsDynamicGroupComponent implements OnDestroy, OnInit {
7474

7575
this.formId = this.formService.getUniqueId(this.model.id);
7676
this.formModel = this.formBuilderService.modelFromConfiguration(config, this.model.scopeUUID, {});
77-
this.chips = new Chips(this.model.value, 'value', this.model.mandatoryField);
77+
this.chips = new Chips(this.model.value, 'value', this.model.mandatoryField, this.EnvConfig.submission.metadata.icons);
7878
this.subs.push(
7979
this.chips.chipsItems
8080
.subscribe((subItems: any[]) => {

src/app/shared/services/route.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class RouteService {
4242
return this.route.queryParamMap.map((map) => {
4343
const snapshot: RouterStateSnapshot = this.router.routerState.snapshot;
4444
// Due to an Angular bug, sometimes change of QueryParam is not detected so double checks with route snapshot
45-
if (!isEqual(map.keys, snapshot.root.queryParamMap.keys)) {
45+
if (!isEqual(map, snapshot.root.queryParamMap)) {
4646
return snapshot.root.queryParamMap;
4747
} else {
4848
return map;

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
version "1.0.1"
7878
resolved "https://registry.yarnpkg.com/@angularclass/bootloader/-/bootloader-1.0.1.tgz#75de7cf3901b445900a419c2aeca44181d465060"
7979

80-
"@ng-bootstrap/ng-bootstrap@^1.0.0":
80+
"@ng-bootstrap/ng-bootstrap@1.1.2":
8181
version "1.1.2"
8282
resolved "https://registry.yarnpkg.com/@ng-bootstrap/ng-bootstrap/-/ng-bootstrap-1.1.2.tgz#276b1c488687ca3e53d1694b63835fd57ca552ca"
8383

0 commit comments

Comments
 (0)