Skip to content

Commit 3da3f96

Browse files
committed
Use "term" fallback instead of empty string
1 parent 4da4907 commit 3da3f96

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • src/components/TermSearchControl

src/components/TermSearchControl/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ function TermSearchControl( { label, taxonomy, termIds, onChange } ) {
171171
label ||
172172
sprintf(
173173
__( 'Filter by %s', 'block-editor-components' ),
174-
taxObject ? taxObject?.labels?.singular_name : ''
174+
taxObject
175+
? taxObject?.labels?.singular_name
176+
: __( 'term', 'block-editor-components' )
175177
)
176178
}
177179
suggestions={ suggestions }

0 commit comments

Comments
 (0)