Skip to content

Commit

Permalink
fix: Build issues
Browse files Browse the repository at this point in the history
- fix building libs and CSR by solvig type errors provided with TS 5.6
  • Loading branch information
pawelfras committed Dec 13, 2024
1 parent f95bd2c commit 54ca560
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
5 changes: 4 additions & 1 deletion core-libs/setup/ssr/optimized-engine/rendering-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ export class RenderingCache {
if (this.options?.cacheSize) {
this.renders.delete(key);
if (this.renders.size >= this.options.cacheSize) {
this.renders.delete(this.renders.keys().next().value);
const oldestKey = this.renders.keys().next().value;
if (oldestKey !== undefined) {
this.renders.delete(oldestKey);
}
}
}
// cache only if shouldCacheRenderingResult return true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
[type]="iconTypes.CLOSE"
role="button"
title="{{ 'common.close' | cxTranslate }}"
(click)="this.searchBox.value = ''"
(click)="searchBox.value = ''"
></cx-icon>
<cx-icon
class="cx-asm-customer-360-promotion-listing-search-icon-search"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import { Subscription } from 'rxjs';
import { CustomerTicketingDialogComponent } from '../../../shared/customer-ticketing-dialog/customer-ticketing-dialog.component';

@Component({
selector: 'cx-customer-ticketing-reopen-dialog',
templateUrl: './customer-ticketing-reopen-dialog.component.html',
standalone: false
selector: 'cx-customer-ticketing-reopen-dialog',
templateUrl: './customer-ticketing-reopen-dialog.component.html',
standalone: false,
})
export class CustomerTicketingReopenDialogComponent
extends CustomerTicketingDialogComponent
Expand All @@ -34,8 +34,7 @@ export class CustomerTicketingReopenDialogComponent
this.form.markAllAsTouched();
FormUtils.deepUpdateValueAndValidity(this.form);
} else {
const mustWaitForAttachment =
this.form.get('file')?.value?.length > 0 ?? false;
const mustWaitForAttachment = this.form.get('file')?.value?.length > 0;
this.isDataLoading$.next(true);
this.subscription = this.customerTicketingFacade
.createTicketEvent(this.prepareTicketEvent(), mustWaitForAttachment)
Expand Down
2 changes: 1 addition & 1 deletion projects/schematics/src/add-ssr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ declare module '@schematics/angular/utility/workspace-models' {
/**
* Since ng17 it's no more "browserTarget" but "buildTarget" property
*/
buildTarget?: string;
buildTarget: string;
}
}

Expand Down

0 comments on commit 54ca560

Please sign in to comment.