Skip to content

Commit

Permalink
fix(view): single drive in raid mode not shown in one page
Browse files Browse the repository at this point in the history
  • Loading branch information
MauriceNino committed Jun 16, 2022
1 parent 02d0b35 commit ac01eb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/view/src/widgets/storage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const StorageWidget: FC<StorageWidgetProps> = ({
);

const infos = useMemo(() => {
if (layout && layout.length > 1) {
if (layout.length > 1) {
return layout.map(s => {
const brand = s.brands.map((b, i) => `${b} ${s.types[i]}`).join(', ');
const size = s.size;
Expand Down Expand Up @@ -127,7 +127,7 @@ export const StorageWidget: FC<StorageWidgetProps> = ({
color={theme.colors.storagePrimary}
heading='Storage'
infos={infos}
infosPerPage={3}
infosPerPage={layout.length > 1 ? 3 : 7}
icon={faHdd}
>
<ChartContainer
Expand Down

0 comments on commit ac01eb3

Please sign in to comment.