diff --git a/packages/components/src/combobox-control/index.js b/packages/components/src/combobox-control/index.js index cc4543f180205f..79a5d8573c6cd5 100644 --- a/packages/components/src/combobox-control/index.js +++ b/packages/components/src/combobox-control/index.js @@ -69,7 +69,7 @@ function ComboboxControl( { } ); const currentOption = options.find( ( option ) => option.value === value ); - const currentLabel = currentOption?.label; + const currentLabel = currentOption?.label ?? undefined; // Use a custom prefix when generating the `instanceId` to avoid having // duplicate input IDs when rendering this component and `FormTokenField` // in the same page (see https://github.com/WordPress/gutenberg/issues/42112). @@ -236,8 +236,8 @@ function ComboboxControl( { >