Skip to content

Commit

Permalink
Clean up props to be passed to remote ensembler component
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlycoconuts committed Sep 19, 2022
1 parent 577aa47 commit aa89779
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, {useContext, useEffect} from "react";
import {EuiFlexItem, EuiSpacer, EuiText} from "@elastic/eui";
import React, { useContext, useEffect } from "react";
import { EuiFlexItem, EuiSpacer, EuiText } from "@elastic/eui";

import { get } from "../../../../../../components/form/utils";
import { StandardEnsembler } from "../../../../../../services/ensembler";
Expand All @@ -24,8 +24,8 @@ const FallbackView = ({ text }) => (
const StandardEnsemblerWithCustomExperimentEnginePanel = ({
remoteUi,
projectId,
config,
onChangeHandler,
routeNamePath,
onChange,
errors,
}) => {
// Load component from remote host
Expand All @@ -40,8 +40,8 @@ const StandardEnsemblerWithCustomExperimentEnginePanel = ({
name="./EditStandardEnsemblerConfig"
fallback={<FallbackView text="Loading Standard Ensembler config for the selected Custom Experiment Engine" />}
projectId={projectId}
config={config}
onChangeHandler={onChangeHandler}
routeNamePath={routeNamePath}
onChange={onChange}
errors={errors}
/>
</StandardEnsemblerLoaderComponent>
Expand Down Expand Up @@ -112,9 +112,9 @@ export const StandardEnsemblerFormGroup = ({
url: "http://localhost:3002/xp/remoteEntry.js"
}}
projectId={projectId}
config={experimentEngine.config}
onChangeHandler={onChangeHandler}
errors={errors}
routeNamePath={standardConfig.route_name_path}
onChange={onChange("route_name_path")}
errors={get(errors, "route_name_path")}
/>
</EuiFlexItem>
) : (
Expand Down

0 comments on commit aa89779

Please sign in to comment.