Skip to content

Commit 8e41765

Browse files
committed
Fix
1 parent fa6d404 commit 8e41765

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

website/src/pages/playground.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff 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 (

0 commit comments

Comments
 (0)