Skip to content

Commit

Permalink
proper defaulting of null values
Browse files Browse the repository at this point in the history
  • Loading branch information
petersutter committed Dec 10, 2024
1 parent 269b295 commit 21759f6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions frontend/src/composables/useApi/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,8 @@ export function createTokenReview (data) {
}

export function getSubjectRules (options = {}) {
const {
namespace = 'default',
accountId,
} = options
const namespace = options.namespace ?? 'default'
const accountId = options.accountId
return callResourceMethod('/api/user/subjectrules', {
namespace,
accountId,
Expand Down

0 comments on commit 21759f6

Please sign in to comment.