Merge branch 'main' into avm99963-monorail
Merged commit 4137ed7879acadbf891e8c471108acb874dae886.
GitOrigin-RevId: b6100ffc5b1da355a35f37b13fcaaf746ee8b307
diff --git a/static_src/react/mr-react-autocomplete.tsx b/static_src/react/mr-react-autocomplete.tsx
index 65a045f..c9a17ff 100644
--- a/static_src/react/mr-react-autocomplete.tsx
+++ b/static_src/react/mr-react-autocomplete.tsx
@@ -153,7 +153,7 @@
_options(): string[] {
switch (this.vocabularyName) {
case 'component': {
- return [...this._components.keys()];
+ return [...this._components.values()].filter((c) => !c.deprecated).map((c) => c.path);
} case 'label': {
// The label map keys are lowercase. Use the LabelDef label name instead.
return [...this._labels.values()].map((labelDef: LabelDef) => labelDef.label);