Skip to content

Commit

Permalink
[#1366] Protect against null
Browse files Browse the repository at this point in the history
  • Loading branch information
msiodelski committed Sep 10, 2024
1 parent 86c012b commit c23b35c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,15 @@
label="Clear"
class="p-button-text p-button-sm hidden md:inline-flex flex-none ml-2"
type="button"
(click)="control.setValue(controls.data.clearValue ?? null)"
(click)="control.setValue(controls.data?.clearValue ?? null)"
></button>
<p-button
class="flex-none"
[text]="true"
icon="pi pi-times"
[disabled]="control.value === (controls.data?.clearValue ?? null)"
title="Clear"
(click)="control.setValue(controls.data.clearValue ?? null)"
(click)="control.setValue(controls.data?.clearValue ?? null)"
styleClass="md:hidden ml-2"
size="small"
/>
Expand Down

0 comments on commit c23b35c

Please sign in to comment.