message: fix(origin-ui-core): register device group
diff: @@ -193,11 +193,10 @@ export function DeviceGroupForm(props: IProps) {
  formikActions.setSubmitting(true);
  dispatch(setLoading(true));
  - const externalDeviceIds: IExternalDeviceId[] = externalDeviceIdTypes.map((type) => {
  - const typeString = (type as unknown) as string;
  + const externalDeviceIds: IExternalDeviceId[] = externalDeviceIdTypes.map(({ type }) => {
  return {
  - id: values[(type as unknown) as string],
  - type: typeString
  + id: values[type],
  + type
  };
  });
  @@ -337,13 +336,15 @@ export function DeviceGroupForm(props: IProps) {
  {externalDeviceIdTypes.map(
  (externalDeviceIdType, index) => {
  - const externalDeviceIdTypeText = (externalDeviceIdType as unknown) as string;
  + if (externalDeviceIdType.autogenerated) {
  + return null;
  + }
  return (
  <FormInput
  key={index}
  - label={externalDeviceIdTypeText}
  - property={externalDeviceIdTypeText}
  + label={externalDeviceIdType.type}
  + property={externalDeviceIdType.type}
  disabled={fieldDisabled}
  className="mt-3"
  />
  