Reverted change

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

View file

@ -31,10 +31,17 @@ export const handleMosaic = async (
const baseUrl = `https://${selectedDomain}/`; const baseUrl = `https://${selectedDomain}/`;
let path = ''; let path = '';
for (let i = 0; i++; i < 3) { if (mosaicMedia[0]) {
if (mosaicMedia[i]) { path += `/${mosaicMedia[0]}`;
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)));