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:
parent
40c9abfe9b
commit
b203658bac
2 changed files with 2 additions and 2 deletions
|
|
@ -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));
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue