diff --git a/components/ImagesGallery/ImagesGallery.vue b/components/ImagesGallery/ImagesGallery.vue index c7dae6d3..f0bcc495 100644 --- a/components/ImagesGallery/ImagesGallery.vue +++ b/components/ImagesGallery/ImagesGallery.vue @@ -522,15 +522,13 @@ export default { const baseRoute = this.$router.options.base || '/' if ('dataset_images' in biolucidaData) { const validBiolucidaData = biolucidaData.dataset_images.filter(bObject => { - if ( - biolucida2DItems.some(b2DItem => pathOr("", ['biolucida','identifier'], b2DItem) == bObject.image_id) || - biolucida3DItems.some(b3DItem => pathOr("", ['biolucida','identifier'], b3DItem) == bObject.image_id) - ) { - return bObject - } + return ( + biolucida2DItems.some(b2DItem => pathOr("", ['biolucida', 'identifier'], b2DItem) == bObject.image_id) || + biolucida3DItems.some(b3DItem => pathOr("", ['biolucida', 'identifier'], b3DItem) == bObject.image_id) + ) }) const uniqueBiolucidaData = validBiolucidaData.filter((bObject, index) => { - return index === validBiolucidaData.findIndex(bObject2 => bObject.image_id == bObject2.image_id); + return index == validBiolucidaData.findIndex(bObject2 => bObject.image_id == bObject2.image_id); }) items.push( ...Array.from(uniqueBiolucidaData, dataset_image => {