Skip to content

Commit

Permalink
fix(gallery-service): Preserve ref config
Browse files Browse the repository at this point in the history
  • Loading branch information
son-of-tvs-brent committed Dec 8, 2023
1 parent 04a0ed0 commit e0fdd3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ng-gallery/src/lib/services/gallery.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class Gallery {
if (this._instances.has(id)) {
const galleryRef = this._instances.get(id);
if (config) {
galleryRef.setConfig({ ...this.config, ...config });
galleryRef.setConfig({ ...galleryRef.config, ...config });
}
return galleryRef;
} else {
Expand Down

0 comments on commit e0fdd3d

Please sign in to comment.