Skip to content

Commit

Permalink
revert the operation change check
Browse files Browse the repository at this point in the history
  • Loading branch information
shivindera committed Jun 7, 2022
1 parent 9a9ca8d commit 29f5779
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function DataViewsList({
singleSelection="always"
options={dataViewsList?.map(({ title, id, name }) => ({
key: id,
label: name ?? title,
label: name ? name : title,
value: id,
checked: id === currentDataViewId ? 'on' : undefined,
}))}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type IdsWithTitle = Awaited<ReturnType<DataViewsService['getIdsWithTitle']>>;
type SelectedOptions = EuiComboBoxProps<string>['selectedOptions'];

const toComboBoxOptions = (options: IdsWithTitle) =>
options.map(({ name, title, id }) => ({ label: name ?? title, id }));
options.map(({ name, title, id }) => ({ label: name ? name : title, id }));

export const ComboBoxSelect = ({
fetchedIndex,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export function convertDataViewIntoLensIndexPattern(dataView: DataView): IndexPa
return {
id: dataView.id!, // id exists for sure because we got index patterns by id
title,
name: name ?? title,
name: name ? name : title,
timeFieldName,
fieldFormatMap:
fieldFormatMap &&
Expand Down

0 comments on commit 29f5779

Please sign in to comment.