Skip to content

Commit

Permalink
Fix create form filter and show dialog (#30007)
Browse files Browse the repository at this point in the history
### Proposed Changes
* Fix create form filter and show dialog

### Checklist
- [x] Tests
- [ ] Translations
- [ ] Security Implications Contemplated (add notes if applicable)

### Additional Info
** any additional useful context or info **

### Screenshots
Original             |  Updated
:-------------------------:|:-------------------------:
** original screenshot **  |  ** updated screenshot **
  • Loading branch information
oidacra authored Sep 13, 2024
1 parent 250741a commit 9981b91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ describe('DotContentTypesPortletComponent', () => {

describe('filterBy', () => {
beforeEach(() => {
router.queryParams = of({
router.data = of({
filterBy: 'FORM'
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class DotContentTypesPortletComponent implements OnInit, OnDestroy {
map((environments: DotEnvironment[]) => !!environments.length),
take(1)
),
this.route.queryParams.pipe(pluck('filterBy'), take(1))
this.route.data.pipe(pluck('filterBy'), take(1))
).subscribe(([contentTypes, isEnterprise, environments, filterBy]) => {
const baseTypes: StructureTypeView[] = contentTypes;

Expand Down

0 comments on commit 9981b91

Please sign in to comment.