Skip to content

Commit

Permalink
fix(ESSNTL-4387): Pass down inventoryId to Advisor (#1773)
Browse files Browse the repository at this point in the history
  • Loading branch information
adonispuente authored Feb 22, 2023
1 parent 120aeee commit 72e017e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/SystemDetails/Advisor.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import React from 'react';
import { useStore } from 'react-redux';
import AsyncComponent from '@redhat-cloud-services/frontend-components/AsyncComponent';
import PropTypes from 'prop-types';

const AdvisorTab = () => {
const AdvisorTab = ({ inventoryId }) => {
return <AsyncComponent
appName="advisor"
module="./SystemDetail"
Expand All @@ -11,7 +12,11 @@ const AdvisorTab = () => {
intlProps={{
locale: navigator.language.slice(0, 2)
}}
inventoryId={inventoryId}
/>;
};

AdvisorTab.propTypes = {
inventoryId: PropTypes.string.isRequired
};
export default AdvisorTab;

0 comments on commit 72e017e

Please sign in to comment.