mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-05 18:40:56 +01:00
Fixed /undefined in mosaic urls with <4 imgs
This commit is contained in:
parent
42a5a98ff7
commit
ef9fbc8f73
1 changed files with 3 additions and 1 deletions
|
@ -23,7 +23,9 @@ export const handleMosaic = async (
|
|||
let path = '';
|
||||
|
||||
for (let j = 0; j < 4; j++) {
|
||||
path += `/${mosaicMedia[j]}`;
|
||||
if (typeof mosaicMedia[j] === 'string') {
|
||||
path += `/${mosaicMedia[j]}`;
|
||||
}
|
||||
}
|
||||
|
||||
const size = calcSize(
|
||||
|
|
Loading…
Add table
Reference in a new issue