fixing filter

linting
pull/5042/head
lianahus 4 months ago committed by Aniket
parent 4c5a39d842
commit a90e07fff0
  1. 10
      libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.tsx

@ -50,10 +50,14 @@ export const RemixUIGridCell = (props: RemixUIGridCellProps) => {
if (filterCon.filter != '') setAnyEnabled(
anyEnabled && (
props.title.toLowerCase().includes(filterCon.filter.toLowerCase()) ||
props.searchKeywords?.some(searchKeyword => filterCon.filter.includes(searchKeyword))))
props.title?.toLowerCase().includes(filterCon.filter?.toLowerCase()) ||
props.searchKeywords?.map(keyword => keyword.toLowerCase()).some(searchKeyword => searchKeyword.toLowerCase().includes(filterCon.filter.toLocaleLowerCase()))))
}, [filterCon, props.tagList])
/*
anyEnabled && (props.title?.toLowerCase().includes(filterCon.filter?.toLowerCase()) ||
props.searchKeywords?.map(keyword => keyword.toLowerCase()).some(searchKeyword => searchKeyword.toLowerCase().includes(filterCon.filter))))
}, [filterCon, props.tagList])
*/
/*const listenOnExpand = (key) => {
if (key === props.key) setExpand(props.toggleExpandView)
console.log('expand ----> ', key)

Loading…
Cancel
Save