made this a for loop idk why i didnt bother before

This commit is contained in:
dangered wolf 2022-07-28 20:18:52 -07:00
parent e200dc7d47
commit dfe2db20df
No known key found for this signature in database
GPG key ID: 41E4D37680ED8B58

View file

@ -31,17 +31,10 @@ export const handleMosaic = async (
const baseUrl = `https://${selectedDomain}/`; const baseUrl = `https://${selectedDomain}/`;
let path = ''; let path = '';
if (mosaicMedia[0]) { for (let i = 0; i++; i < 3) {
path += `/${mosaicMedia[0]}`; if (mosaicMedia[i]) {
} path += `/${mosaicMedia[i]}`;
if (mosaicMedia[1]) { }
path += `/${mosaicMedia[1]}`;
}
if (mosaicMedia[2]) {
path += `/${mosaicMedia[2]}`;
}
if (mosaicMedia[3]) {
path += `/${mosaicMedia[3]}`;
} }
const size = calcSize(mediaList.map(i => ({ width: i.width, height: i.height } as Size))); const size = calcSize(mediaList.map(i => ({ width: i.width, height: i.height } as Size)));