Skip to content

Commit 370464a

Browse files
iOvergaardCopilot
andauthored
Update packages/uui-color-picker/lib/uui-color-picker.element.ts
Co-authored-by: Copilot <[email protected]>
1 parent f82dcd8 commit 370464a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/uui-color-picker/lib/uui-color-picker.element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ export class UUIColorPickerElement extends LabelMixin('label', LitElement) {
530530
}
531531

532532
private _renderSwatches() {
533-
if (!this.swatches || this.swatches.length === 0) return nothing;
533+
if (!this.swatches?.length) return nothing;
534534
return html`<uui-color-swatches
535535
id="swatches"
536536
class="color-picker__swatches"

0 commit comments

Comments
 (0)