From 08a4f9c72fd67b74a2ff54bc5dd0146f35cc44bf Mon Sep 17 00:00:00 2001 From: Henning Bredel Date: Wed, 10 Jul 2024 13:17:01 +0200 Subject: [PATCH] Some cleanup --- .../client/js/plugins/LitterAssessment.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geonode_mapstore_client/client/js/plugins/LitterAssessment.jsx b/geonode_mapstore_client/client/js/plugins/LitterAssessment.jsx index 4faf10d54a..997f534d07 100644 --- a/geonode_mapstore_client/client/js/plugins/LitterAssessment.jsx +++ b/geonode_mapstore_client/client/js/plugins/LitterAssessment.jsx @@ -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", @@ -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")} >