mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-04-02 16:09:13 +01:00
Search uses string includes instead of startsWith
This commit is contained in:
parent
9945304e18
commit
c0a79c1e67
@ -357,7 +357,7 @@ export const DocumentsTableComponent: React.FC<IDocumentsTableComponentProps> =
|
|||||||
if (unnamedGroup.length > 0) {
|
if (unnamedGroup.length > 0) {
|
||||||
menuList.push(
|
menuList.push(
|
||||||
...unnamedGroup
|
...unnamedGroup
|
||||||
.filter((def) => !columnSearchText || def.label.toLowerCase().startsWith(columnSearchText.toLowerCase()))
|
.filter((def) => !columnSearchText || def.label.toLowerCase().includes(columnSearchText.toLowerCase()))
|
||||||
.map((column) => (
|
.map((column) => (
|
||||||
<MenuItemCheckbox key={column.id} name={COLUMNS_MENU_NAME} value={column.id}>
|
<MenuItemCheckbox key={column.id} name={COLUMNS_MENU_NAME} value={column.id}>
|
||||||
{column.label}
|
{column.label}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user