From 678d75d3f5a702747ecad6b60943ecbefc6fa746 Mon Sep 17 00:00:00 2001 From: Sachin Neravath Date: Wed, 26 May 2021 14:38:11 +0530 Subject: [PATCH] fix(core): make dynamicEl in refresh method optional --- src/lightgallery.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lightgallery.ts b/src/lightgallery.ts index a69120a48..955a72565 100644 --- a/src/lightgallery.ts +++ b/src/lightgallery.ts @@ -2315,7 +2315,7 @@ export class LightGallery { * plugin.refresh(); * */ - refresh(galleryItems: GalleryItem[]): void { + refresh(galleryItems?: GalleryItem[]): void { if (!this.settings.dynamic) { this.invalidateItems(); }