fix: repeated slides (#7612)

fix AF-1104
This commit is contained in:
darkskygit committed 2024-07-26 07:59:06 +00:00
1 parent fcc42104fa
commit 5207e7abfc
1 file changed
+3 -1
@@ -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 (