Wizard: handle partition customizations properly

If there are no partitions defined in the policy or profile, leave
partitioning on automatic.
This commit is contained in:
Sanne Raymaekers 2025-04-28 14:13:42 +02:00 committed by Klara Simickova
parent 40c9abfe9b
commit b203658bac
2 changed files with 2 additions and 2 deletions

View file

@ -184,7 +184,7 @@ const PolicySelector = () => {
return partition;
});
if (newPartitions) {
if (newPartitions.length > 0) {
dispatch(changeFileSystemConfigurationType('manual'));
for (const partition of newPartitions) {
dispatch(addPartition(partition));

View file

@ -223,7 +223,7 @@ const ProfileSelector = () => {
return partition;
});
if (newPartitions) {
if (newPartitions.length > 0) {
dispatch(changeFileSystemConfigurationType('manual'));
for (const partition of newPartitions) {
dispatch(addPartition(partition));