Skip to content

Commit

Permalink
bugfix display zero permission value
Browse files Browse the repository at this point in the history
  • Loading branch information
PhoenixNazarov committed Oct 21, 2024
1 parent 09fee71 commit faffd84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/views/Account/AccountPermission.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default defineComponent({
},
getValue(key: string, project: string | undefined = undefined, default_: number | undefined = undefined) {
const val = this.permissions?.find(el => el.key == key && el.project == project)?.value
return val ? val : default_
return val != undefined ? val : default_
},
setProjectAccess(project: string, value: boolean) {
this.permissions = this.permissions?.filter(el => el.key != 'project' || el.project != project)
Expand Down

0 comments on commit faffd84

Please sign in to comment.