Skip to content

Commit

Permalink
fix: link path correction
Browse files Browse the repository at this point in the history
  • Loading branch information
KEGustafsson authored and tkurki committed Sep 10, 2023
1 parent 6b2d0a2 commit b0fd48f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/server-admin-ui/src/views/Dashboard/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ const Dashboard = (props) => {
<ul className="horizontal-bars type-2">
{Object.keys(providerStatistics || {}).map((providerId) => {
const providerStats = providerStatistics[providerId]
let linkType = 'provider'
try {
linkType = providerStatus.find(
(item) => item.id === providerId
).statusType
} catch (error) {}
const inputPulseIconClass =
'icon-login text-primary' +
(providerStats.deltaRate > 50
Expand Down Expand Up @@ -114,7 +120,9 @@ const Dashboard = (props) => {
}}
/>
<span className="title">
{providerIdLink(providerId)}
{linkType === 'plugin'
? pluginNameLink(providerId)
: providerIdLink(providerId)}
</span>
<span className="value">
{' '}
Expand Down

0 comments on commit b0fd48f

Please sign in to comment.