diff --git a/src/plugins/data/public/query/query_string/dataset_service/lib/index_type.ts b/src/plugins/data/public/query/query_string/dataset_service/lib/index_type.ts index 469c2d9c224e..e3ec419e207d 100644 --- a/src/plugins/data/public/query/query_string/dataset_service/lib/index_type.ts +++ b/src/plugins/data/public/query/query_string/dataset_service/lib/index_type.ts @@ -122,7 +122,8 @@ const fetchDataSources = async (client: SavedObjectsClientContract) => { const dataSources: DataStructure[] = [DEFAULT_DATA.STRUCTURES.LOCAL_DATASOURCE].concat( response.savedObjects .filter( - (savedObject) => savedObject.attributes.dataSourceEngineType !== 'OpenSearch Serverless' + (savedObject) => + !savedObject.attributes?.dataSourceEngineType?.includes('OpenSearch Serverless') ) .map((savedObject) => ({ id: savedObject.id, diff --git a/src/plugins/query_enhancements/public/datasets/s3_type.ts b/src/plugins/query_enhancements/public/datasets/s3_type.ts index 856854d9b03c..feea21db3737 100644 --- a/src/plugins/query_enhancements/public/datasets/s3_type.ts +++ b/src/plugins/query_enhancements/public/datasets/s3_type.ts @@ -200,7 +200,8 @@ const fetchDataSources = async (client: SavedObjectsClientContract): Promise savedObject.attributes.dataSourceEngineType !== 'OpenSearch Serverless' + (savedObject) => + !savedObject.attributes?.dataSourceEngineType?.includes('OpenSearch Serverless') ) .map((savedObject) => ({ id: savedObject.id,