Skip to content

Commit

Permalink
Merge pull request #71024 from cockroachdb/blathers/backport-release-…
Browse files Browse the repository at this point in the history
…21.2-70999

release-21.2: cluster-ui: derive app name from route parameter in cluster-ui
  • Loading branch information
xinhaoz authored Oct 2, 2021
2 parents 7affc13 + ac4ade9 commit 47b426a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
ExecutionStatistics,
flattenStatementStats,
formatDate,
queryByName,
getMatchParamByName,
statementKey,
StatementStatistics,
TimestampToMoment,
Expand Down Expand Up @@ -144,7 +144,7 @@ export const selectStatements = createSelector(
return null;
}
let statements = flattenStatementStats(state.data.statements);
const app = queryByName(props.location, appAttr);
const app = getMatchParamByName(props.match, appAttr);
const isInternal = (statement: ExecutionStatistics) =>
statement.app.startsWith(state.data.internal_app_name_prefix);

Expand Down

0 comments on commit 47b426a

Please sign in to comment.