Skip to content

Commit

Permalink
[Hotfix] Invitations flow
Browse files Browse the repository at this point in the history
- Skip incorrect transformation of list into tree
- Go to people of certain institution in /settings/institution
  • Loading branch information
danielkryska authored and kmarszalek committed Nov 17, 2020
1 parent 50b0bdb commit b131b23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ <h2 id="institution-title">{{ institution.name }}</h2>
<button
class="button button--secondary button--small"
[routerLink]="['/settings/people']"
[queryParams]="{'institution': (activeInstitution$ | async).slug}"
>
Osoby w tej instytucji
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class InstitutionService {

for (let i = 0; i < list.length; i += 1) {
node = listWithChildren[i];
if (node.parentSlug != null) {
if (node.parentSlug != null && !!listWithChildren[map[node.parentSlug]]) {
// if you have dangling branches check that map[node.parentId] exists
listWithChildren[map[node.parentSlug]].children.push(node);
} else {
Expand Down

0 comments on commit b131b23

Please sign in to comment.