diff --git a/ui/src/router/components/configuration/components/EnsemblerConfigSection.js b/ui/src/router/components/configuration/components/EnsemblerConfigSection.js index 4eb2a3554..2636fb1c4 100644 --- a/ui/src/router/components/configuration/components/EnsemblerConfigSection.js +++ b/ui/src/router/components/configuration/components/EnsemblerConfigSection.js @@ -23,7 +23,7 @@ export const EnsemblerConfigSection = ({ ensemblerType={"pyfunc"}> diff --git a/ui/src/router/components/form/components/pyfunc_config/PyFuncDeploymentPanel.js b/ui/src/router/components/form/components/pyfunc_config/PyFuncDeploymentPanel.js index a071c1e04..cb0dde5f2 100644 --- a/ui/src/router/components/form/components/pyfunc_config/PyFuncDeploymentPanel.js +++ b/ui/src/router/components/form/components/pyfunc_config/PyFuncDeploymentPanel.js @@ -18,9 +18,7 @@ export const PyFuncDeploymentPanel = ({ onChangeHandler, errors = {}, }) => { - const { ensemblers, isLoaded } = useContext(EnsemblersContext); - console.log(ensemblers); - console.log(isLoaded); + const { ensemblers } = useContext(EnsemblersContext); let options = Object.values(ensemblers).reduce((pyfunc_ensemblers, val) => { pyfunc_ensemblers.push({ @@ -35,9 +33,6 @@ export const PyFuncDeploymentPanel = ({ (option) => option.value === ensembler_id ); - console.log(options); - console.log(errors); - return ( diff --git a/ui/src/services/ensembler/Ensembler.js b/ui/src/services/ensembler/Ensembler.js index 7dcbef2ba..96ec83be3 100644 --- a/ui/src/services/ensembler/Ensembler.js +++ b/ui/src/services/ensembler/Ensembler.js @@ -31,7 +31,7 @@ export class Ensembler { case "standard": return { type: this.type, standard_config: this.standard_config }; case "pyfunc": - return { type: this.type, py_func_ref_config: this.pyfunc_config }; + return { type: this.type, pyfunc_config: this.pyfunc_config }; default: return { ...this }; } diff --git a/ui/src/services/ensembler/PyFuncEnsembler.js b/ui/src/services/ensembler/PyFuncEnsembler.js index 2758ba758..b73548658 100644 --- a/ui/src/services/ensembler/PyFuncEnsembler.js +++ b/ui/src/services/ensembler/PyFuncEnsembler.js @@ -12,7 +12,7 @@ export class PyFuncEnsembler extends Ensembler { static fromJson(json = {}) { const ensembler = new PyFuncEnsembler(); - ensembler.pyfunc_config = objectAssignDeep({}, json.py_func_ref_config); + ensembler.pyfunc_config = objectAssignDeep({}, json.pyfunc_config); return ensembler; } diff --git a/ui/src/services/version/RouterVersion.js b/ui/src/services/version/RouterVersion.js index 64b9a6b10..1805716a3 100644 --- a/ui/src/services/version/RouterVersion.js +++ b/ui/src/services/version/RouterVersion.js @@ -89,7 +89,7 @@ export class RouterVersion { } : this.ensembler.type === "pyfunc" ? { - pyfunc_config: this.ensembler.py_func_ref_config, + pyfunc_config: this.ensembler.pyfunc_config, } : undefined), }