refs #1919. Fixed bug when removed partition

pull/20/head
Manuel Aranda Rosales 2025-04-15 18:37:36 +02:00
parent cf5f2754c6
commit 6205f3ad2f
1 changed files with 3 additions and 1 deletions

View File

@ -288,7 +288,9 @@ export class PartitionAssistantComponent {
this.loading = true;
const totalPartitionSize = this.selectedDisk.partitions.reduce((sum: any, partition: { size: any; }) => sum + partition.size, 0);
const totalPartitionSize = this.selectedDisk.partitions
.filter((partition: any) => !partition.removed)
.reduce((sum: any, partition: any) => sum + partition.size, 0);
if (totalPartitionSize > this.selectedDisk.totalDiskSize) {
this.toastService.error('El tamaño total de las particiones en el disco seleccionado excede el tamaño total del disco.');