mirror of
https://github.com/KevinMidboe/seasoned.git
synced 2026-04-28 02:23:38 +00:00
Fix linting and formatting issues
- Run Prettier to fix code style in 7 files - Auto-fix ESLint errors with --fix flag - Replace ++ with += 1 in commandTracking.ts - Add eslint-disable comments for intentional console.error usage - Fix destructuring, array types, and template literals - Remove trivial type annotations
This commit is contained in:
@@ -95,7 +95,8 @@
|
||||
}
|
||||
|
||||
function parseElasticResponse(elasticResponse: IAutocompleteSearchResults) {
|
||||
const data = elasticResponse.hits.hits;
|
||||
const { hits } = elasticResponse.hits;
|
||||
const data = hits.length > 0 ? hits : (searchResults.value ?? []);
|
||||
|
||||
const results: Array<IAutocompleteResult> = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user