|
|
|
@ -69,7 +69,9 @@ const CommonFenceInputGroup: FC<CommonFenceInputGroupProps> = ({ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const { optional: optionalInputs, required: requiredInputs } = |
|
|
|
|
Object.entries(fenceParameters).reduce<{ |
|
|
|
|
Object.entries(fenceParameters) |
|
|
|
|
.sort(([a], [b]) => (a > b ? 1 : -1)) |
|
|
|
|
.reduce<{ |
|
|
|
|
optional: ReactElement[]; |
|
|
|
|
required: ReactElement[]; |
|
|
|
|
}>( |
|
|
|
@ -87,7 +89,8 @@ const CommonFenceInputGroup: FC<CommonFenceInputGroupProps> = ({ |
|
|
|
|
) => { |
|
|
|
|
const { optional, required } = previous; |
|
|
|
|
const buildInput = |
|
|
|
|
MAP_TO_INPUT_BUILDER[contentType] ?? MAP_TO_INPUT_BUILDER.string; |
|
|
|
|
MAP_TO_INPUT_BUILDER[contentType] ?? |
|
|
|
|
MAP_TO_INPUT_BUILDER.string; |
|
|
|
|
|
|
|
|
|
const fenceJoinParameterId = combineIds(fenceId, parameterId); |
|
|
|
|
const initialValue = |
|
|
|
|