Skip to content

Commit 6451bf9

Browse files
authored
fix(hot fix): disable sorting for 'image' column (#2096)
## Description This PR disables image sort in dynamic material table ## Motivation Sorting image does not give any value ## Fixes: Please provide a list of the fixes implemented in this PR * Items added ## Changes: Please provide a list of the changes implemented by this PR * changes made ## Tests included - [ ] Included for each change/fix? - [ ] Passing? (Merge will not be approved unless this is checked) ## Documentation - [ ] swagger documentation updated \[required\] - [ ] official documentation updated \[nice-to-have\] ### official documentation info If you have updated the official documentation, please provide PR # and URL of the pages where the updates are included ## Backend version - [ ] Does it require a specific version of the backend - which version of the backend is required: ## Summary by Sourcery Enhancements: - Prevent image columns from being sortable by adding a check to the disabled sorting condition in the table header
2 parents e37223c + 44b3008 commit 6451bf9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/app/datasets/dataset-table/dataset-table.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ export class DatasetTableComponent implements OnInit, OnDestroy {
471471

472472
if (column.name === "image") {
473473
convertedColumn.renderImage = true;
474+
convertedColumn.sort = "none";
474475
}
475476

476477
if (column.name === "instrumentName") {

0 commit comments

Comments
 (0)