Skip to content

Commit

Permalink
Merge remote-tracking branch 'opensearch/2.9' into backport/backport-…
Browse files Browse the repository at this point in the history
…693-to-2.9
  • Loading branch information
amsiglan committed Nov 29, 2023
2 parents a9b7cee + ef89de3 commit b18534c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches:
- "*"
env:
OPENSEARCH_DASHBOARDS_VERSION: '2.x'
OPENSEARCH_DASHBOARDS_VERSION: '2.9'
jobs:
tests:
name: Run unit tests
Expand Down
4 changes: 1 addition & 3 deletions public/pages/Rules/components/RuleEditor/RuleEditorForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ export const RuleEditorForm: React.FC<VisualRuleEditorProps> = ({

const refreshLogTypeOptions = useCallback(async () => {
const logTypes = await DataStore.logTypes.getLogTypes();
setLogTypeOptions(
logTypes.map(({ id, name }) => ({ value: id, label: getLogTypeLabel(name) }))
);
setLogTypeOptions(logTypes.map(({ name }) => ({ value: name, label: getLogTypeLabel(name) })));
}, []);

const validateTags = (fields: string[]) => {
Expand Down

0 comments on commit b18534c

Please sign in to comment.