Skip to content

Commit a7aea62

Browse files
committed
fix render of preview
1 parent 9b469a1 commit a7aea62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/design-library-list/design-library-list-item.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,9 @@ const DesignPreview = ( {
312312
useEffect( () => {
313313
if ( prevEnableBackground !== enableBackground ) {
314314
// Adjust scale if the background was toggled
315-
setTimeout( adjustScale, 50 )
315+
adjustScale()
316316
}
317-
}, [ blocks ] )
317+
}, [ blocks, enableBackground ] )
318318

319319
return (
320320
<body

0 commit comments

Comments
 (0)