Skip to content

Commit f19831d

Browse files
committed
remove hardcapping
1 parent 3819baf commit f19831d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/plugins/global-settings/color-schemes/color-scheme-picker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ const ColorSchemePicker = props => {
455455
{ ...props }
456456
className="stk-global-color-scheme-picker"
457457
items={ customColorSchemes }
458-
nonSortableItems={ colorSchemes }
458+
nonSortableItems={ colorSchemes.slice( 0, 3 ) }
459459
editableName={ false }
460460
onDeleteItem={ onDeleteItem }
461461
handleAddItem={ handleAddItem }

src/plugins/global-settings/color-schemes/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ domReady( () => {
128128
// Ensure there are a max of three color schemes
129129
const colorSchemes = [ ...colorSchemesRaw ].sort( ( a, b ) => {
130130
return a.key < b.key ? -1 : ( a.key > b.key ? 1 : 0 )
131-
} ).slice( 0, 3 )
131+
} )
132132

133133
const settings = {
134134
colorSchemes,

0 commit comments

Comments
 (0)