Skip to content

Commit

Permalink
chores
Browse files Browse the repository at this point in the history
  • Loading branch information
cihanandac committed Jul 10, 2024
1 parent 2f41054 commit ef18981
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions frontend/src/components/theme/View/ExhibitionView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,11 @@ const ExhibitionView = (props) => {
<td className="columntwo">
<ul>
{showAllObjects
? content?.objects?.map(
({ priref, title }, index) => {
? content?.objects
?.filter(
({ title }) => title && title.trim() !== '',
)
.map(({ priref, title }, index) => {
const artworkUrl = artworkURL[priref];
return (
title && (
Expand Down Expand Up @@ -432,10 +435,12 @@ const ExhibitionView = (props) => {
</li>
)
);
},
)
})
: content?.objects
?.slice(0, 3)
.filter(
({ title }) => title && title.trim() !== '',
)
.map(({ priref, title }, index) => {
const artworkUrl = artworkURL[priref];
return (
Expand Down

0 comments on commit ef18981

Please sign in to comment.