| @@ -254,9 +254,9 @@ | ||
| 254 | 254 | // Clean-up function for the effect. |
| 255 | 255 | return () => { |
| 256 | 256 | document.querySelector( '.tablepress-all-tables' ).removeEventListener( 'click', handleClick ); |
| 257 | 257 | }; |
| 258 | - }, [] ); // eslint-disable-line react-hooks/exhaustive-deps -- This should only run on the initial render, so no dependencies are needed. | |
| 258 | + }, [] ); | |
| 259 | 259 | |
| 260 | 260 | return ( |
| 261 | 261 | <> |
| 262 | 262 | { screenData.previewIsOpen && ( |