Skip to content

Commit

Permalink
Refactor to WPUnitControlUnitList type
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Oct 13, 2021
1 parent 9843bc2 commit 6ec8dfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/unit-control/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ export const useCustomUnits = ( {
export function getUnitsWithCurrentUnit(
currentValue: Value,
legacyUnit: string | undefined,
units: Array< WPUnitControlUnit > | false = ALL_CSS_UNITS
units: WPUnitControlUnitList = ALL_CSS_UNITS
): WPUnitControlUnitList {
if ( ! Array.isArray( units ) ) {
return units;
Expand Down

0 comments on commit 6ec8dfa

Please sign in to comment.