Skip to content

Commit

Permalink
fix: Latest Posts categories settings (#43685)
Browse files Browse the repository at this point in the history
Add a named export to `SelectControl` so the native module aligns with
the web module. The use of a named export was added to code shared
between web and native. Because the latter only defined a default
export, an error was thrown.

- Named export added: #40737
- Named export used: #41536

I am uncertain as to why a named export was added originally. My
presumption is that it was recently used so that the import was a local
reference, instead of a importing the module's top-level entry file.
  • Loading branch information
dcalhoun authored Aug 30, 2022
1 parent 2458bba commit 1d778aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/select-control/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { memo } from '@wordpress/element';
*/
import PickerCell from '../mobile/bottom-sheet/picker-cell';

const SelectControl = memo(
export const SelectControl = memo(
( {
help,
instanceId,
Expand Down

0 comments on commit 1d778aa

Please sign in to comment.