Skip to content

Commit

Permalink
Merge branch 'main' into fix/e2e_pipelines_test
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeAlonso authored Oct 1, 2024
2 parents b2fa801 + 9372a8a commit f4ed998
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion frontend/src/pages/storageClasses/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,16 @@ export const columns: SortableData<StorageClassKind>[] = [
{
field: 'displayName',
label: ColumnLabel.DisplayName,
sortable: (a, b) => a.metadata.name.localeCompare(b.metadata.name),
sortable: (a: StorageClassKind, b: StorageClassKind): number => {
const configDisplayNameA = getStorageClassConfig(a)?.displayName;
const configDisplayNameB = getStorageClassConfig(b)?.displayName;

if (configDisplayNameA && configDisplayNameB) {
return configDisplayNameA.localeCompare(configDisplayNameB);
}

return -1;
},
info: {
popoverProps: { headerContent: 'Display name' },
popover:
Expand Down

0 comments on commit f4ed998

Please sign in to comment.