fixed ExtraIds not returned as empty list

pull/12798/head
JPVenson 5 months ago
parent efc6611072
commit 67d8e8c7da

@ -1397,7 +1397,7 @@ public sealed class BaseItemRepository(
dto.Audio = (ProgramAudio)entity.Audio;
}
dto.ExtraIds = string.IsNullOrWhiteSpace(entity.ExtraIds) ? null : entity.ExtraIds.Split('|').Select(e => Guid.Parse(e)).ToArray();
dto.ExtraIds = string.IsNullOrWhiteSpace(entity.ExtraIds) ? [] : entity.ExtraIds.Split('|').Select(e => Guid.Parse(e)).ToArray();
dto.ProductionLocations = entity.ProductionLocations?.Split('|') ?? [];
dto.Studios = entity.Studios?.Split('|') ?? [];
dto.Tags = entity.Tags?.Split('|') ?? [];

Loading…
Cancel
Save