Skip to content

Commit 01b90fc

Browse files
Update src/code-snippet/code-snippet.component.ts
Co-authored-by: Akshat Patel <38994122+Akshat55@users.noreply.github.com>
1 parent 3ac6853 commit 01b90fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/code-snippet/code-snippet.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ export class CodeSnippet extends BaseIconButton implements OnInit, AfterViewInit
310310

311311
protected canExpand() {
312312
if (this.display === "multi") {
313-
const height = this.codeContent?.nativeElement.getBoundingClientRect().height;
313+
const height = this.codeContent.nativeElement.getBoundingClientRect().height;
314314
if (
315315
this.maxCollapsedNumberOfRows > 0 &&
316316
(this.maxExpandedNumberOfRows <= 0 ||

0 commit comments

Comments
 (0)