Skip to content

Commit db9bd7d

Browse files
authored
Merge pull request Sofie-Automation#1319 from nrkno/chore/evs-hidden-adlibs
fix(AdLibPanel): support hidden on AdLibPieces
2 parents 76b8cbd + 175b5ff commit db9bd7d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/webui/src/client/ui/Shelf/AdLibPanel.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,9 @@ export function fetchAndFilter(props: IFetchAndFilterProps): AdLibFetchAndFilter
334334
partId: {
335335
$in: partIds,
336336
},
337+
hidden: {
338+
$ne: true,
339+
},
337340
},
338341
{
339342
sort: { _rank: 1 },
@@ -447,6 +450,9 @@ export function fetchAndFilter(props: IFetchAndFilterProps): AdLibFetchAndFilter
447450
RundownBaselineAdLibPieces.find(
448451
{
449452
rundownId: currentRundownId,
453+
hidden: {
454+
$ne: true,
455+
},
450456
},
451457
{
452458
sort: { sourceLayerId: 1, _rank: 1, name: 1 },

0 commit comments

Comments
 (0)