Skip to content

Commit

Permalink
fix(frontend): remove source in cc if there no legifrance url (#3263)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel authored Jan 19, 2021
1 parent 03a1aea commit ff6f60a
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,12 @@ class ConventionCollective extends React.Component {
"Droit du travail: Existe-t-il une hiérarchie entre les textes ?",
},
]}
source={{
name: "Légifrance",
url: convention.url,
}}
source={
convention.url && {
name: "Légifrance",
url: convention.url,
}
}
subtitle={
<Text fontSize="small">
{convention.title} (IDCC {formatIdcc(convention.num)})
Expand Down

0 comments on commit ff6f60a

Please sign in to comment.