mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-17 01:36:57 +00: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) {
|
||||
menuList.push(
|
||||
...unnamedGroup
|
||||
.filter((def) => !columnSearchText || def.label.toLowerCase().startsWith(columnSearchText.toLowerCase()))
|
||||
.filter((def) => !columnSearchText || def.label.toLowerCase().includes(columnSearchText.toLowerCase()))
|
||||
.map((column) => (
|
||||
<MenuItemCheckbox key={column.id} name={COLUMNS_MENU_NAME} value={column.id}>
|
||||
{column.label}
|
||||
|
Loading…
x
Reference in New Issue
Block a user