Skip to content

Commit

Permalink
fix: verb page redirection when new modules are deployed (#1471)
Browse files Browse the repository at this point in the history
Because the deployment key format changed a bit to have the prefix
`dpl-` the verb page redirection wasn't working. This PR should correct
that issue.
  • Loading branch information
wesbillman authored May 14, 2024
1 parent 471896f commit 0b1005e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion frontend/src/features/verbs/VerbPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export const VerbPage = () => {
if (!module) {
const lastIndex = deploymentKey.lastIndexOf('-')
if (lastIndex !== -1) {
module = modules.modules.find((module) => module.name === deploymentKey.substring(0, lastIndex))
const moduleName = deploymentKey.substring(0, lastIndex).replaceAll('dpl-', '')
module = modules.modules.find((module) => module.name === moduleName)
navgation(`/deployments/${module?.deploymentKey}/verbs/${verbName}`)
notification.showNotification({
title: 'Showing latest deployment',
Expand Down
1 change: 0 additions & 1 deletion frontend/src/features/verbs/VerbRightPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { ingress, isHttpIngress, httpRequestPath, verbCalls } from './verb.utils
export const verbPanels = (verb?: Verb) => {
const panels = [] as ExpandablePanelProps[]

console.log(verb?.schema)
if (isHttpIngress(verb)) {
const http = ingress(verb)
const path = httpRequestPath(verb)
Expand Down

0 comments on commit 0b1005e

Please sign in to comment.