Skip to content

Commit

Permalink
fix(php,js): Define the types after creating a group
Browse files Browse the repository at this point in the history
  • Loading branch information
zak39 committed Nov 19, 2024
1 parent 64840c6 commit 1e65a60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/Controller/GroupController.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public function create(array $data = []): JSONResponse {
'group' => [
'gid' => $NCGroup->getGID(),
'displayName' => $NCGroup->getDisplayName(),
'types' => $NCGroup->getBackendNames(),
'usersCount' => 0,
'slug' => Slugger::slugger($NCGroup->getGID())
]
Expand Down
1 change: 1 addition & 0 deletions src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export default {
name,
gid,
displayName,
types: resp.data.group.types,

Check failure on line 125 in src/store/actions.js

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 5 tabs but found 10 spaces
slug: resp.data.group.slug
})
// Navigates to the g roup's details page
Expand Down

0 comments on commit 1e65a60

Please sign in to comment.