about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/components/admin/Trends.js
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2023-01-18 18:41:24 +0100
committerGitHub <noreply@github.com>2023-01-18 18:41:24 +0100
commit01405bc6f84fd9cfb974e1e668465148bda47ac5 (patch)
treecb3103c82a337178a3548e1a157e0fa94be37bdb /app/javascript/flavours/glitch/components/admin/Trends.js
parent472fd4307f9c963aba57e537e3ca3a8f94dfa139 (diff)
parent3f74235ac5b6ce6f13c531506f30c466da2a7aa1 (diff)
Merge pull request #2087 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/javascript/flavours/glitch/components/admin/Trends.js')
-rw-r--r--app/javascript/flavours/glitch/components/admin/Trends.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/components/admin/Trends.js b/app/javascript/flavours/glitch/components/admin/Trends.js
index 4c17b69a0..774bf36e6 100644
--- a/app/javascript/flavours/glitch/components/admin/Trends.js
+++ b/app/javascript/flavours/glitch/components/admin/Trends.js
@@ -50,7 +50,7 @@ export default class Trends extends React.PureComponent {
             <Hashtag
               key={hashtag.name}
               name={hashtag.name}
-              href={`/admin/tags/${hashtag.id}`}
+              href={hashtag.id === undefined ? undefined : `/admin/tags/${hashtag.id}`}
               people={hashtag.history[0].accounts * 1 + hashtag.history[1].accounts * 1}
               uses={hashtag.history[0].uses * 1 + hashtag.history[1].uses * 1}
               history={hashtag.history.reverse().map(day => day.uses)}