Skip to content

Commit a3bda7e

Browse files
committed
Target tag by id instead of name
1 parent 0899574 commit a3bda7e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dotcom-rendering/src/components/ArticleBody.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ export const ArticleBody = ({
142142
const language = decideLanguage(lang);
143143
const languageDirection = decideLanguageDirection(isRightToLeftLang);
144144
const hasObserverPublicationTag = tags.find(
145-
(tag) => tag.type === 'Publication' && tag.title === 'The Observer',
145+
(tag) =>
146+
tag.type === 'Publication' && tag.id === 'publication/theobserver',
146147
);
147148
const ObserverFooter = () => {
148149
return (

0 commit comments

Comments
 (0)