Skip to content

Commit

Permalink
Pass environment name as prop to ResourcesPanel from TransformerStep
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlycoconuts committed Apr 2, 2024
1 parent f8437de commit 6b70e3c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { SelectTransformerPanel } from "../components/SelectTransformerPanel";

export const TransformerStep = ({ maxAllowedReplica }) => {
const {
data: { transformer, logger, protocol },
data: { transformer, logger, protocol, environment_name },
onChangeHandler,
} = useContext(FormContext);
const { onChange } = useOnChangeHandler(onChangeHandler);
Expand All @@ -34,6 +34,7 @@ export const TransformerStep = ({ maxAllowedReplica }) => {
<>
<EuiFlexItem grow={false}>
<ResourcesPanel
environment={environment_name}
isGPUEnabled={false}
resourcesConfig={transformer.resource_request}
onChangeHandler={onChange("transformer.resource_request")}
Expand Down

0 comments on commit 6b70e3c

Please sign in to comment.