Skip to content

Commit

Permalink
Merge pull request #626 from bandada-infra/fix/dashboard-mult-credent…
Browse files Browse the repository at this point in the history
…ials-expression

fix(dashboard): missing credentials and expressions under certain conditions
  • Loading branch information
vplasencia authored Dec 10, 2024
2 parents 404ad6a + 852595e commit eb0bfa1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,14 @@ export default function AccessModeStep({
i.toString()
])

if (_credentials?.id) {
delete _credentials.id
}

if (_credentials?.criteria) {
delete _credentials.criteria
}

const tempCredential = {
..._credentials
}
Expand Down
2 changes: 1 addition & 1 deletion apps/dashboard/src/pages/new-group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function NewGroupPage(): JSX.Element {
setCurrentStep((v) => v + 1)
}

if (group.type === "on-chain" && !next) {
if (group?.type === "on-chain" && !next) {
setGroup({ type: "on-chain", fingerprintDuration: 3600 })
}
}, [])
Expand Down

0 comments on commit eb0bfa1

Please sign in to comment.