Skip to content

Commit

Permalink
[ML] update types
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Nov 2, 2020
1 parent 5d4b138 commit c4203a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/ml/common/types/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export type PartitionFieldConfig =
*/
applyTimeRange: boolean;
sort: {
by: string; // 'anomaly_score' | 'name';
order: string; // 'asc' | 'desc';
by: 'anomaly_score' | 'name';
order: 'asc' | 'desc';
};
}
| undefined;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export const EntityConfig: FC<EntityConfigProps> = ({
onConfigChange(entity.fieldType, {
sort: {
order: config.sort.order,
by: id,
by: id as UiPartitionFieldConfig['sort']['by'],
},
});
}}
Expand All @@ -135,7 +135,7 @@ export const EntityConfig: FC<EntityConfigProps> = ({
onConfigChange(entity.fieldType, {
sort: {
by: config.sort.by,
order: id,
order: id as UiPartitionFieldConfig['sort']['order'],
},
});
}}
Expand Down

0 comments on commit c4203a3

Please sign in to comment.