Changing the subMenuTitle in the context provider has led to an inability to add new documentation sources. (#959)

This commit is contained in:
Jason Jacobs 2024-03-14 13:20:47 -07:00 • committed by GitHub
parent bb838f1546
commit cd24ecf686
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -175,7 +175,7 @@ const MentionList = forwardRef((props: MentionListProps, ref) => {
useEffect(() => {
const items = [...props.items];
if (subMenuTitle === "Search documentation") {
if (subMenuTitle === "Type to search docs") {
items.push({
title: "Add Docs",
type: "action",