Skip to content

Commit

Permalink
Minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
ddjnw1yu committed Jul 3, 2024
1 parent 8bc6013 commit 4577e57
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions components/ImagesGallery/ImagesGallery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 4577e57

Please sign in to comment.