Skip to content

Commit

Permalink
Fix position calculation with mimetype filters (#1506)
Browse files Browse the repository at this point in the history
Consider filtered mimetypes when calculating the position of a DAM item
in `DamItemsService`'s `getDamItemPosition()`

Previously, the mimetypes were ignored, sometimes resulting in an
incorrect position.
  • Loading branch information
thomasdax98 authored Dec 13, 2023
1 parent e8158b0 commit c883d35
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/tricky-berries-trade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@comet/cms-api": patch
---

Consider filtered mimetypes when calculating the position of a DAM item in `DamItemsService`'s `getDamItemPosition()`

Previously, the mimetypes were ignored, sometimes resulting in an incorrect position.
2 changes: 1 addition & 1 deletion packages/api/cms-api/src/dam/files/dam-items.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class DamItemsService {
{
folderId: args.folderId,
includeArchived: args.includeArchived,
filter: { searchText: args.filter?.searchText },
filter: args.filter,
sortDirection: args.sortDirection,
sortColumnName: args.sortColumnName,
},
Expand Down

0 comments on commit c883d35

Please sign in to comment.