We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 292cb5f commit 674ec6bCopy full SHA for 674ec6b
src/edit.js
@@ -37,7 +37,9 @@ export default function Edit( { attributes, setAttributes } ) {
37
// Effect to adjust hideTOC based on hidden or accordion attributes
38
useEffect( () => {
39
// If hideTOC is already set, no need to adjust
40
- if ( hideTOC !== undefined ) return;
+ if ( hideTOC !== undefined ) {
41
+ return;
42
+ }
43
44
// Determine if we need to activate hideTOC based on hidden or accordion
45
if ( hidden || accordion ) {
0 commit comments