Skip to content

Commit

Permalink
[#3688] Manually set objecttype on fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
Viicos committed Feb 15, 2024
1 parent abd4929 commit b1d3913
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ const ObjectsApiOptionsFormFields = ({index, name, schema, formData, onChange})
}

setAvailableObjecttypes(response.data);
if (objecttype === '') {
onChange(
produce(formData, draft => {
draft.objecttype = availableObjecttypes[0].url;
})
);
}
}, [version]);

const {loading: objecttypeVersionLoading, error: objecttypeVersionLoadingError} =
Expand Down

0 comments on commit b1d3913

Please sign in to comment.