File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ import { classMap } from 'lit/directives/class-map.js';
88import { observes } from '@patternfly/pfe-core/decorators/observes.js' ;
99import { RovingTabindexController } from '@patternfly/pfe-core/controllers/roving-tabindex-controller.js' ;
1010
11+ import { isServer } from 'lit' ;
12+
1113import { PfLabel } from '../pf-label/pf-label.js' ;
1214
1315import styles from './pf-label-group.css' ;
@@ -91,7 +93,10 @@ export class PfLabelGroup extends LitElement {
9193
9294 @queryAssignedNodes ( { slot : 'category' , flatten : true } ) private _categorySlotted ?: Node [ ] ;
9395
94- get #labels( ) : NodeListOf < PfLabel > {
96+ get #labels( ) : NodeListOf < PfLabel > | PfLabel [ ] {
97+ if ( isServer ) {
98+ return [ ] as PfLabel [ ] ;
99+ }
95100 return this . querySelectorAll < PfLabel > ( 'pf-label:not([slot]):not([overflow-label])' ) ;
96101 }
97102
You can’t perform that action at this time.
0 commit comments