Skip to content

Commit

Permalink
chore(demo): correct templateRef option in icon dropdown for inputCar…
Browse files Browse the repository at this point in the history
…dG… (#9124)

Co-authored-by: Alex Inkin <[email protected]>
  • Loading branch information
shiv9604 and waterplea authored Oct 3, 2024
1 parent 1b732e8 commit 8417cea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type {PipeTransform} from '@angular/core';
import {inject, Pipe} from '@angular/core';
import {inject, Pipe, TemplateRef} from '@angular/core';
import {tuiInspectAny} from '@taiga-ui/addon-doc/utils';
import {TUI_IS_E2E} from '@taiga-ui/cdk/tokens';

Expand All @@ -22,6 +22,6 @@ export class TuiInspectPipe implements PipeTransform {
return 'λ(x) => y';
}

return tuiInspectAny(value, depth);
return value instanceof TemplateRef ? 'TemplateRef' : tuiInspectAny(value, depth);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default class PageComponent extends AbstractExampleTuiInteractive {
'Custom labels',
];

protected readonly cards: Record<string, string> = {
protected readonly cards: Record<string, PolymorpheusContent | string> = {
common: 'https://ng-web-apis.github.io/dist/assets/images/common.svg',
universal: 'https://ng-web-apis.github.io/dist/assets/images/universal.svg',
mutation:
Expand Down

0 comments on commit 8417cea

Please sign in to comment.