Skip to content

Commit

Permalink
Development: Fix console errors on course overview page (#9526)
Browse files Browse the repository at this point in the history
  • Loading branch information
cremertim authored Oct 19, 2024
1 parent 1a7959e commit b6f99a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
</div>
</div>
<hr class="" />
@if (faqs.length === 0) {
@if (faqs?.length === 0) {
<h2 class="markdown-preview" jhiTranslate="artemisApp.faq.noExisting"></h2>
}
<div>
@for (faq of this.filteredFaqs; track faq) {
<jhi-course-faq-accordion [faq]="faq"></jhi-course-faq-accordion>
}
</div>
@if (filteredFaqs.length === 0 && faqs.length > 0) {
@if (filteredFaqs?.length === 0 && faqs.length > 0) {
<h2 class="markdown-preview" jhiTranslate="artemisApp.faq.noMatching"></h2>
}
</div>
4 changes: 2 additions & 2 deletions src/main/webapp/app/overview/course-overview.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@
routerLinkActive="active"
[jhiFeatureToggleHide]="sidebarItem.featureToggle"
[title]="sidebarItem.title"
(click)="itemsDrop.close()"
(click)="itemsDrop?.close()"
>
<ng-template *ngTemplateOutlet="iconTextTemplate; context: { $implicit: sidebarItem }" />
</a>
Expand All @@ -274,7 +274,7 @@
routerLinkActive="active"
[jhiFeatureToggleHide]="sidebarItem.featureToggle"
[title]="sidebarItem.title"
(click)="itemsDrop.close()"
(click)="itemsDrop?.close()"
>
<ng-template *ngTemplateOutlet="iconTextTemplate; context: { $implicit: sidebarItem }" />
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/app/shared/sidebar/sidebar.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</button>

<div ngbDropdownMenu>
@if (sidebarData.messagingEnabled) {
@if (sidebarData?.messagingEnabled) {
<button (click)="createDirectChat()" class="p-2" ngbDropdownItem>
<fa-icon [icon]="faUser" class="item-icon" [fixedWidth]="true"></fa-icon>
<span jhiTranslate="artemisApp.courseOverview.sidebar.createDirectChat"></span>
Expand Down

0 comments on commit b6f99a7

Please sign in to comment.