Skip to content

Commit

Permalink
Some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ridoo committed Jul 10, 2024
1 parent a54adbc commit 08a4f9c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async function getModels() {
return axios.get(configUrl);
}

function triggerAiInference({ formData }, model) {
function triggerAiInference({ formData }) {

const headers = {
"Content-type": "application/x-www-form-urlencoded;charset=utf-8",
Expand Down Expand Up @@ -143,7 +143,7 @@ function LitterAssessment({ enabled, pk, wmsLayers = [], securityToken, onClose
schema={models[selectedModel]?.jsonSchema || {}}
uiSchema={models[selectedModel]?.uiSchema || {}}
formData={{ imageUrl: wmsLayer, pk }}
onSubmit={(e) => triggerAiInference(e, models[selectedModel])}
onSubmit={(e) => triggerAiInference(e)}
onError={log("errors")}
>
<div>
Expand Down

0 comments on commit 08a4f9c

Please sign in to comment.