From 48d897833dcde7a8edf87d93b1647717d190f490 Mon Sep 17 00:00:00 2001 From: cipchk Date: Mon, 11 Mar 2024 17:49:30 +0800 Subject: [PATCH] chore(abc:cell): fix lint --- packages/abc/cell/cell-host.directive.ts | 2 +- packages/abc/cell/cell.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/abc/cell/cell-host.directive.ts b/packages/abc/cell/cell-host.directive.ts index 84627a272..5f226909b 100644 --- a/packages/abc/cell/cell-host.directive.ts +++ b/packages/abc/cell/cell-host.directive.ts @@ -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; if (componentType == null) { if (typeof ngDevMode === 'undefined' || ngDevMode) { diff --git a/packages/abc/cell/cell.component.ts b/packages/abc/cell/cell.component.ts index d7bfb821f..4e8e96bbf 100644 --- a/packages/abc/cell/cell.component.ts +++ b/packages/abc/cell/cell.component.ts @@ -62,7 +62,7 @@ import type { CellDefaultText, CellOptions, CellTextResult, CellValue } from './ } @case ('widget') { - @if (res != null) { + @if (res) { } }