fix: repeated slides (#7612)

fix AF-1104
This commit is contained in:
darkskygit
2024-07-26 07:59:06 +00:00
parent fcc42104fa
commit 5207e7abfc

View File

@@ -150,7 +150,9 @@ const createBasicCover = async (
};
function getRandomElement<T>(arr: T[]): T {
return arr[Math.floor(Math.random() * arr.length)];
return JSON.parse(
JSON.stringify(arr[Math.floor(Math.random() * arr.length)])
);
}
const basic1section = async (