diff --git a/projects/hslayers/common/filters/filters.component.ts b/projects/hslayers/common/filters/filters.component.ts
index 47f78a3f41..086c036485 100644
--- a/projects/hslayers/common/filters/filters.component.ts
+++ b/projects/hslayers/common/filters/filters.component.ts
@@ -21,8 +21,8 @@ import {TranslateCustomPipe} from 'hslayers-ng/services/language';
],
})
export class HsFiltersComponent extends HsStylerPartBaseComponent {
- @Input() rule: any;
- @Input() set selectedLayer(layer: HsLayerDescriptor) {
+ @Input({required: true}) rule: any;
+ @Input({required: true}) set selectedLayer(layer: HsLayerDescriptor) {
this.hsFiltersService.setSelectedLayer(layer);
}
diff --git a/projects/hslayers/components/styler/rule/rule.component.html b/projects/hslayers/components/styler/rule/rule.component.html
index 2d2f74fa00..22d74e1414 100644
--- a/projects/hslayers/components/styler/rule/rule.component.html
+++ b/projects/hslayers/components/styler/rule/rule.component.html
@@ -19,10 +19,10 @@
@if (filtersVisible) {
-