[editor] Fix SQL Analyzer related js exeption when predict is enabled
setup(props, { emit }) {
const {
id,
+ sqlAnalyzerProvider,
sqlReferenceProvider,
executor,
initialCursorPosition,
};
if ((<hueWindow>window).ENABLE_PREDICT) {
- attachPredictTypeahead(editor, executor.value.connector(), this.sqlAnalyzerProvider);
+ attachPredictTypeahead(editor, executor.value.connector(), sqlAnalyzerProvider);
}
let placeholderVisible = false;
