Skip to content

Commit

Permalink
πŸ› Unsued videos (#1324)
Browse files Browse the repository at this point in the history
  • Loading branch information
padms committed Jan 3, 2023
1 parent 0751a79 commit 13c4fff
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions studio/src/lib/structure/items/AssetLibrary.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const assetLibraryItems = [
.icon(FileIcon)
.child(
S.documentTypeList('assetFile')
.filter(`_type in ["assetFile"] && count(*[ references(^._id) ]) == 0 && !(_id in path("drafts.**"))`)
.filter(`_type in ["assetFile"] && count(*[references(^._id)]) == 0`)
.id('allFiles')
.title('All unused files'),
),
Expand All @@ -40,8 +40,7 @@ const assetLibraryItems = [
.icon(() => EdsIcon(play_circle_outlined))
.child(
S.documentTypeList('videoFile')
.filter(`_type in ["assetFile"] && count(*[ references(^._id) ]) == 0 && !(_id in path("drafts.**"))`)
.filter(`_type in ["assetFile"] && count(*[ references(^._id) ]) == 0 && !(_id in path("drafts.**"))`)
.filter(`_type in ["videoFile"] && count(*[ references(^._id) ]) == 0 `)
.id('videoFiles')
.title('Video Files'),
),
Expand Down

0 comments on commit 13c4fff

Please sign in to comment.