Skip to content

Commit

Permalink
Add null check for adaptive card elements
Browse files Browse the repository at this point in the history
  • Loading branch information
patrikhellgren committed Jun 29, 2023
1 parent 085ceea commit c333f5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controls/adaptiveCardHost/fluentUI/Elements.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ export class FluentUITextInput extends Input {

public get value(): string | undefined {
if (this.renderedInputControlElement) {
return this.refControl.value;
return this.refControl?.value;
}
else {
return undefined;
Expand Down Expand Up @@ -742,7 +742,7 @@ export class FluentUITimeInput extends Input {

public get value(): string | undefined {
if (this.renderedInputControlElement) {
return this.refControl.value;
return this.refControl?.value;
}
else {
return undefined;
Expand Down

0 comments on commit c333f5d

Please sign in to comment.