Skip to content

Commit

Permalink
chore(abc:cell): fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk committed Mar 11, 2024
1 parent 20cf83a commit 48d8978
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/abc/cell/cell-host.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class CellHostDirective implements OnInit {
@Input() data!: CellTextResult;

ngOnInit(): void {
const widget = this.data.options!.widget!;
const widget = this.data.options.widget!;
const componentType = this.srv.getWidget(widget.key!)?.ref as Type<unknown>;
if (componentType == null) {
if (typeof ngDevMode === 'undefined' || ngDevMode) {
Expand Down
2 changes: 1 addition & 1 deletion packages/abc/cell/cell.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ import type { CellDefaultText, CellOptions, CellTextResult, CellValue } from './
<nz-badge [nzStatus]="res?.result?.color" nzText="{{ _text }}" />
}
@case ('widget') {
@if (res != null) {
@if (res) {
<ng-template cell-widget-host [data]="res" />
}
}
Expand Down

0 comments on commit 48d8978

Please sign in to comment.