diff --git a/core-web/libs/block-editor/src/lib/shared/components/suggestion-list/components/suggestions-list-item/suggestions-list-item.component.ts b/core-web/libs/block-editor/src/lib/shared/components/suggestion-list/components/suggestions-list-item/suggestions-list-item.component.ts index 4e333eb9fb0b..5615c8bc3509 100644 --- a/core-web/libs/block-editor/src/lib/shared/components/suggestion-list/components/suggestions-list-item/suggestions-list-item.component.ts +++ b/core-web/libs/block-editor/src/lib/shared/components/suggestion-list/components/suggestions-list-item/suggestions-list-item.component.ts @@ -34,7 +34,7 @@ export class SuggestionsListItemComponent implements FocusableOption, OnInit { } ngOnInit() { - this.icon = this.icon = typeof this.url === 'string' && !(this.url.split('/').length > 1); + this.icon = typeof this.url === 'string' && !(this.url.split('/').length > 1); } getLabel(): string { diff --git a/core-web/libs/block-editor/src/lib/shared/components/suggestions/suggestions.component.html b/core-web/libs/block-editor/src/lib/shared/components/suggestions/suggestions.component.html index 0611e2bb4cb4..566a130c9093 100644 --- a/core-web/libs/block-editor/src/lib/shared/components/suggestions/suggestions.component.html +++ b/core-web/libs/block-editor/src/lib/shared/components/suggestions/suggestions.component.html @@ -4,7 +4,7 @@

{{ title }}

} - @for (item of items; track $index) { + @for (item of items; track item) { @if (item.id !== 'divider') { {{ title }} } @else {
} - -
-
}