feat(sqllab): Format sql (#25344)

This commit is contained in:
JUST.in DO IT
2023-11-03 09:38:11 -07:00
committed by GitHub
parent d619078d25
commit 24a2213445
8 changed files with 119 additions and 4 deletions

View File

@@ -146,8 +146,10 @@ const AceEditorWrapper = ({
};
const onChangeText = (text: string) => {
setSql(text);
onChange(text);
if (text !== sql) {
setSql(text);
onChange(text);
}
};
const { data: annotations } = useAnnotations({