Skip to content

Commit

Permalink
Bug fix for typeof conceptDetail?.extras[key] === "string" && concept…
Browse files Browse the repository at this point in the history
…Detail?.extras[key]?.startsWith("http") in pages/orgs/[org]/sources/[source]/concepts/[concept]/index.js
  • Loading branch information
Amos Laboso committed Jun 28, 2024
1 parent da187da commit 08a83cf
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,8 @@ function ConceptDetail() {
{typeof conceptDetail?.extras[key] === "string" ||
typeof conceptDetail?.extras[key] === "number" ||
typeof conceptDetail?.extras[key] === "boolean" ? (
conceptDetail?.extras[key]?.startsWith("http") ? (
typeof conceptDetail?.extras[key] === "string"
&& conceptDetail?.extras[key]?.startsWith("http") ? (
<a
href={conceptDetail?.extras[key]}
target="_blank"
Expand Down

0 comments on commit 08a83cf

Please sign in to comment.