Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Ashwin P Chandran <[email protected]>
  • Loading branch information
ashwin-pc committed Aug 26, 2024
1 parent 8e91c03 commit 45743d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const indexTypeConfig: DatasetTypeConfig = {
},

supportedLanguages: (dataset: Dataset): string[] => {
return ['SQL', 'PPL', 'DQL', 'Lucene'];
return ['SQL', 'PPL'];
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@ export const DatasetSelector = ({
datasetService.getType(selectedDataset?.type || '')?.meta.icon.type || 'database';

const fetchDatasets = useCallback(async () => {
const typeConfig = datasetService.getType(selectedDataset?.type || '');
if (!typeConfig || typeConfig.id !== DEFAULT_DATA.SET_TYPES.INDEX_PATTERN) {
return;
}
const typeConfig = datasetService.getType(DEFAULT_DATA.SET_TYPES.INDEX_PATTERN);
if (!typeConfig) return;

const fetchedIndexPatternDataStructures = await typeConfig.fetch(savedObjects.client, []);

Expand Down

0 comments on commit 45743d6

Please sign in to comment.