Skip to content

Commit 9883a24

Browse files
committed
fix
1 parent ee76d3d commit 9883a24

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/components/Dialogs/MetadataForm.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ export function MetadataForm({
5656
const selectedOption = event.detail.selectedOption as HTMLElement;
5757
const value = selectedOption.dataset.value ?? '';
5858
setValue('chargingTargetType', value, { shouldValidate: true, shouldDirty: true });
59-
if (value === '') {
60-
setValue('chargingTarget', '', { shouldValidate: true, shouldDirty: true });
61-
}
6259
};
6360

6461
const chargingTypes: SelectOption[] = [

src/components/Wizards/CreateManagedControlPlane/CreateManagedControlPlaneWizardContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ export const CreateManagedControlPlaneWizardContainer: FC<CreateManagedControlPl
411411
name: initialData?.metadata?.name ?? '',
412412
displayName: annotations?.[DISPLAY_NAME_ANNOTATION] ?? '',
413413
chargingTarget: labels?.[CHARGING_TARGET_LABEL] ?? '',
414-
chargingTargetType: labels?.[CHARGING_TARGET_TYPE_LABEL] ?? '',
414+
chargingTargetType: labels?.[CHARGING_TARGET_TYPE_LABEL]?.toLowerCase() ?? '',
415415
members,
416416
componentsList: componentsList ?? [],
417417
};

0 commit comments

Comments
 (0)