FIX ERROR reverse
This commit is contained in:
@@ -587,9 +587,9 @@ export default class gallery {
|
|||||||
const imported = new Set();
|
const imported = new Set();
|
||||||
|
|
||||||
// Initializing the registry of files
|
// Initializing the registry of files
|
||||||
const registry = files instanceof FileList ? Object.entries(files) : files;
|
const registry = files instanceof FileList ? Object.entries(files) : [...files];
|
||||||
|
|
||||||
for (const [index, file] of reverse ? registry.reverse() : reverse) {
|
for (const [index, file] of reverse ? registry.reverse() : registry) {
|
||||||
// Iterating over files
|
// Iterating over files
|
||||||
|
|
||||||
if (file) {
|
if (file) {
|
||||||
|
|||||||
Reference in New Issue
Block a user