Skip to content

Commit

Permalink
quick fix for entries not beeing saved properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Tilsch committed Nov 10, 2023
1 parent 69223f7 commit af3c45b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions apps/exhibition-live/components/form/SemanticJsonForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,12 @@ const SemanticJsonForm: FunctionComponent<SemanticJsonFormsProps> = ({

const handleFormChange = useCallback(
(state: Pick<JsonFormsCore, "data" | "errors">) => {
setData(state.data);
setData({
...state.data,
"@type": typeIRI,
});
},
[setData],
[setData, typeIRI],
);

const handleMappedData = useCallback(
Expand Down

0 comments on commit af3c45b

Please sign in to comment.