Skip to content

Commit

Permalink
Remove duplicate useEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
danburonline committed Mar 4, 2024
1 parent 188ff8a commit c21f3ab
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ const ElasticSearchQueryForm: FC<{
setEditorValue(formattedInitialQuery);
}, [query]);

useEffect(() => {
const formattedInitialQuery = JSON.stringify(query, null, 2);
setInitialQuery(formattedInitialQuery);
}, []);

const handleChange = (_: any, __: any, value: string) => {
setEditorValue(value);
try {
Expand Down

0 comments on commit c21f3ab

Please sign in to comment.