Skip to content

Commit

Permalink
Fix functional test
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal committed Aug 4, 2022
1 parent 615447c commit c5f674e
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,13 @@ export class SavedSearchEmbeddable
if (!dataView) {
return;
}
const sort = this.getSort(this.savedSearch.sort, dataView);

const props: SearchProps = {
columns: this.savedSearch.columns,
dataView,
isLoading: false,
sort: this.getSort(this.savedSearch.sort, dataView),
sort,
rows: [],
searchDescription: this.savedSearch.description,
description: this.savedSearch.description,
Expand Down Expand Up @@ -326,9 +327,9 @@ export class SavedSearchEmbeddable
onSetColumns: (columns: string[]) => {
this.updateInput({ columns });
},
onSort: (sort: string[][]) => {
onSort: (nextSort: string[][]) => {
const sortOrderArr: SortPairArr[] = [];
sort.forEach((arr) => {
nextSort.forEach((arr) => {
sortOrderArr.push(arr as SortPairArr);
});
this.updateInput({ sort: sortOrderArr });
Expand Down Expand Up @@ -421,7 +422,7 @@ export class SavedSearchEmbeddable
).columns;
searchProps.sort = this.getSort(
this.input.sort || this.savedSearch.sort,
this.searchProps?.dataView
searchProps?.dataView
);

searchProps.sharedItemTitle = this.panelTitle;
Expand Down

0 comments on commit c5f674e

Please sign in to comment.