HG-161: Gallery ref depends on ... galleryRef

Update `currentGalleryRef`, when `data.galleryRef` changes.