Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
feat(role): merge the role properly
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Nov 23, 2022
1 parent 07b7806 commit 9ea6622
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions pages/role/read.page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,16 @@ const receivedErrors = ref<string[]>([])
const successMessages = ref<string[]>([])
const roleData = computed<RoleAttributes<"deserialized">>({
get(): RoleAttributes<"deserialized"> { return role.value.data },
get(): RoleAttributes<"deserialized"> {
return role.value.data
},
set(newResource: RoleAttributes<"deserialized">): void {
role.value.data = {
...role.value.data,
...newResource
role.value = {
...role.value,
"data": {
...role.value.data,
...newResource
}
}
}
})
Expand Down

0 comments on commit 9ea6622

Please sign in to comment.