Skip to content

Commit 4bf0edc

Browse files
committed
VolumesAndMountsPage: in service view ignore cloud volumes
by definition they can't be services by us fixes #228
1 parent ce62fc7 commit 4bf0edc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

frontend/pages/VolumesAndMountsPage.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,10 @@ export default class VolumesAndMountsPage extends React.Component<
273273
private renderServiceView() {
274274
const [volumes, loadingOrError] = this.state.volumes.unwrap();
275275

276+
const volumesWithoutCloud = (volumes || []).filter(
277+
(v) => v.Technology !== VolumeTechnology.Cloud,
278+
);
279+
276280
return (
277281
<table className={tableClassStripedHover}>
278282
<thead>
@@ -285,7 +289,7 @@ export default class VolumesAndMountsPage extends React.Component<
285289
</tr>
286290
</thead>
287291
<tbody>
288-
{(volumes || []).map((vol) => {
292+
{volumesWithoutCloud.map((vol) => {
289293
const manufactured = vol.Manufactured;
290294
const warrantyEnds = vol.WarrantyEnds;
291295

0 commit comments

Comments
 (0)