Skip to content

Commit

Permalink
web: Remove unnecessary conversion for file system type
Browse files Browse the repository at this point in the history
  • Loading branch information
joseivanlopez committed Apr 30, 2024
1 parent 7a4f457 commit dc6c80f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions web/src/components/storage/VolumeLocationDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ const availableTargets = (volume, device) => {
targets.push("NEW_VG");
}

/** @fixme define type for possible fstypes */
const fsTypes = volume.outline.fsTypes.map(f => f.toLowerCase());
if (device.filesystem && fsTypes.includes(device.filesystem.type))
if (device.filesystem && volume.outline.fsTypes.includes(device.filesystem.type))
targets.push("FILESYSTEM");

return targets;
Expand Down

0 comments on commit dc6c80f

Please sign in to comment.