We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f6d629 commit f870538Copy full SHA for f870538
src/blocks/imprint/controls.js
@@ -15,11 +15,15 @@ export default function SidebarControls( props ) {
15
.sort();
16
17
const onChangeEnabledField = ( key, value ) => {
18
- const newValue = structuredClone( enabledFields );
+ let newValue = structuredClone( enabledFields );
19
20
if ( value ) {
21
newValue.push( key );
22
} else {
23
+ if ( newValue.indexOf( 'all' ) > -1 ) {
24
+ newValue = supportedFields;
25
+ }
26
+
27
const index = newValue.indexOf( key );
28
29
if ( index !== -1 ) {
0 commit comments