Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stratoula committed Feb 18, 2021
1 parent da9392d commit d3fa9ba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ const indexPatternContractMock = ({
Promise.resolve([
{
id: 'test',
title: 'test',
title: 'test name',
},
{
id: 'test1',
title: 'test1',
title: 'test1 name',
},
])
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export async function getIndexPatterns(
indexPatternsService: IndexPatternsContract
) {
const existingIndexPatterns = await indexPatternsService.getIdsWithTitle();
const resolved = await Promise.all(
const indexPatternsListItems = await Promise.all(
existingIndexPatterns.map(async ({ id, title }) => {
const isDefault = defaultIndex === id;
const pattern = await indexPatternsService.get(id);
Expand All @@ -38,7 +38,7 @@ export async function getIndexPatterns(
);

return (
resolved.sort((a, b) => {
indexPatternsListItems.sort((a, b) => {
if (a.sort < b.sort) {
return -1;
} else if (a.sort > b.sort) {
Expand Down

0 comments on commit d3fa9ba

Please sign in to comment.