Skip to content

Commit

Permalink
fix(core): make dynamicEl in refresh method optional
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinchoolur committed May 26, 2021
1 parent 858c176 commit 678d75d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lightgallery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2315,7 +2315,7 @@ export class LightGallery {
* plugin.refresh();
*
*/
refresh(galleryItems: GalleryItem[]): void {
refresh(galleryItems?: GalleryItem[]): void {
if (!this.settings.dynamic) {
this.invalidateItems();
}
Expand Down

0 comments on commit 678d75d

Please sign in to comment.