mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-12-18 20:45:33 +00:00
Fix need-rendering test
This commit is contained in:
@@ -81,10 +81,11 @@ export const insertEntries = async (
|
||||
|
||||
const vids = items.flatMap(
|
||||
(seed, i) =>
|
||||
seed.videos?.map((x) => ({
|
||||
seed.videos?.map((x, j) => ({
|
||||
videoId: x,
|
||||
entryPk: retEntries[i].pk,
|
||||
needRendering: seed.videos!.length > 1,
|
||||
// The first video should not have a rendering.
|
||||
needRendering: j && seed.videos!.length > 1,
|
||||
})) ?? [],
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user