File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -1118,15 +1118,6 @@ WITH USER_MODE`);
11181118 const [ soqlLibOutput , setSoqlLibOutput ] = useState ( '' ) ;
11191119 const [ isLoading , setIsLoading ] = useState ( false ) ;
11201120
1121- // Trigger syntax highlighting when output changes
1122- useEffect ( ( ) => {
1123- if ( typeof window !== 'undefined' && window . Prism && soqlLibOutput ) {
1124- setTimeout ( ( ) => {
1125- window . Prism . highlightAll ( ) ;
1126- } , 100 ) ;
1127- }
1128- } , [ soqlLibOutput ] ) ;
1129-
11301121 const translator = new SOQLToSOQLLibTranslator ( ) ;
11311122
11321123 const handleTranslate = ( ) => {
@@ -1269,8 +1260,9 @@ WITH SYSTEM_MODE`
12691260 ] ;
12701261
12711262 // Initial translation
1272- React . useEffect ( ( ) => {
1263+ useEffect ( ( ) => {
12731264 handleTranslate ( ) ;
1265+ // eslint-disable-next-line react-hooks/exhaustive-deps
12741266 } , [ ] ) ;
12751267
12761268 return (
You can’t perform that action at this time.
0 commit comments