Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mtoensing committed May 27, 2024
1 parent 292cb5f commit 674ec6b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ export default function Edit( { attributes, setAttributes } ) {
// Effect to adjust hideTOC based on hidden or accordion attributes
useEffect( () => {
// If hideTOC is already set, no need to adjust
if ( hideTOC !== undefined ) return;
if ( hideTOC !== undefined ) {
return;
}

// Determine if we need to activate hideTOC based on hidden or accordion
if ( hidden || accordion ) {
Expand Down

0 comments on commit 674ec6b

Please sign in to comment.