-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove null in rss feed when no address in meetup #192
base: master
Are you sure you want to change the base?
Conversation
👷 Deploy request for kind-hoover-e61df1 pending review. 🔨 Explore the source changes: 319f072 |
@@ -22,7 +22,7 @@ const formatContent = ({ | |||
<p>${t.description}</p> | |||
<p>Par:</p> | |||
<ul> | |||
${t.speakers.reduce((b, s) => isUrl(s.link) ? (`${b}<li><a href="${s.link}">${s.name}</a></li>`) : | |||
${t.speakers.reduce((b, s) => isUrl(s.link) ? (`${b}<li><a href="${s.link}">${s.name}</a></li>`) : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't see any difference?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The space at the end. It's my linter who did it. I can re-add it.
rss.js
Outdated
@@ -37,7 +37,7 @@ const formatContent = ({ | |||
} = venue; | |||
const location = ` | |||
${link ? `<a href="${link}">${name}</a>`: name}<br/> | |||
${address} ${postal_code} ${city} | |||
${address ? `${address}` : ""} ${postal_code ? `${postal_code}` : ""} ${city ? `${city}` : ""} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
${address ? `${address}` : ""} ${postal_code ? `${postal_code}` : ""} ${city ? `${city}` : ""} | |
${address ?? ""} ${postal_code ?? ""} ${city ?? ""} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx didn't know the ?? in js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: Charles-Henri GUERIN <charleshenri.guerin@me.com>
When the covid strike too hard, we have to do our meeting remotely. In this case, in the rss feed, the address is displayed as
null null null
. https://i.imgur.com/9r9IKIn.png