fix block playout ui crash (#2580)

This commit is contained in:
Jason Dove
2025-10-29 14:16:59 -05:00
committed by GitHub
parent 727a978689
commit 191e694545
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Fix block history being removed when it is still needed for mirror channel
- This caused playout build errors like "Unable to locate history for playout item"
- Fix crashes due to invalid smart collection searches, e.g. `smart_collection:"this collection does not exist"`
- Fix UI crash when editing block playout that has default deco
## [25.8.0] - 2025-10-26
### Added
@@ -20,6 +20,8 @@ public class GetDecoByPlayoutIdHandler(IDbContextFactory<TvContext> dbContextFac
.Include(p => p.Deco)
.ThenInclude(d => d.DecoGraphicsElements)
.ThenInclude(d => d.GraphicsElement)
.Include(p => p.Deco)
.ThenInclude(d => d.BreakContent)
.SelectOneAsync(p => p.Id, p => p.Id == request.PlayoutId && p.DecoId != null, cancellationToken)
.MapT(p => Mapper.ProjectToViewModel(p.Deco));
}