Skip to content

Commit

Permalink
Changed hardcoded property name to proper OS compatibility constant (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
asteriscos authored and frankeros committed Mar 9, 2021
1 parent 8eb4736 commit 71ccfd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/controllers/agent/components/export-configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {

import PropTypes from 'prop-types';
import { UnsupportedComponents } from '../../../utils/components-os-support';
import { WAZUH_AGENTS_OS_TYPE } from '../../../../common/constants';

export class ExportConfiguration extends Component {
constructor(props) {
Expand Down Expand Up @@ -57,7 +58,7 @@ export class ExportConfiguration extends Component {
(x.name &&
!(
UnsupportedComponents[this.props.agentPlatform] ||
UnsupportedComponents['other']
UnsupportedComponents[WAZUH_AGENTS_OS_TYPE.OTHERS]
).includes(x.name))
) {
this.options.push({ id: `${idx}`, label: x.desc || x });
Expand Down

0 comments on commit 71ccfd7

Please sign in to comment.