diff --git a/packages/sites/src/domains/_lookup-portal.ts b/packages/sites/src/domains/_lookup-portal.ts index 66976e9832e..79554d7a996 100644 --- a/packages/sites/src/domains/_lookup-portal.ts +++ b/packages/sites/src/domains/_lookup-portal.ts @@ -1,5 +1,5 @@ import { searchItems } from "@esri/arcgis-rest-portal"; -import { IHubRequestOptions } from "@esri/hub-common"; +import { IHubRequestOptions, includes } from "@esri/hub-common"; /** * Lookup a domain in Portal @@ -29,7 +29,7 @@ export function _lookupPortal( // since the search api stems the terms, we need to verify // by looking at the results return res.results.filter(r => { - return r.typeKeywords.includes(queryTerm); + return includes(r.typeKeywords, queryTerm); })[0]; }) .then(site => { diff --git a/tsconfig.json b/tsconfig.json index c3340d648e1..7902c6f8a81 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,8 +5,7 @@ "module": "es2015", /* Specify module code generation: 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ "lib": [ "dom", - "es2015", - "es2017" + "es2015" ], /* Specify library files to be included in the compilation: */ // "allowJs": true, /* Allow javascript files to be compiled. */ // "checkJs": true, /* Report errors in .js files. */