Skip to content

Commit

Permalink
(vue) use oneOf enum mapping specific for cells
Browse files Browse the repository at this point in the history
  • Loading branch information
jdwit committed May 3, 2022
1 parent 8c1bdda commit 6297e42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vue/vue/src/jsonFormsCompositions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import {
JsonFormsCellRendererRegistryEntry,
defaultMapStateToEnumCellProps,
mapStateToDispatchCellProps,
mapStateToOneOfEnumCellProps,
StatePropsOfJsonFormsRenderer,
createId,
removeId
Expand Down Expand Up @@ -405,7 +406,7 @@ export const useJsonFormsEnumCell = (props: ControlProps) => {
export const useJsonFormsOneOfEnumCell = (props: ControlProps) => {
const { control, ...other } = useControl(
props,
mapStateToOneOfEnumControlProps,
mapStateToOneOfEnumCellProps,
mapDispatchToControlProps
);
return { cell: control, ...other };
Expand Down

0 comments on commit 6297e42

Please sign in to comment.