fixing filter for providers

cleanup
pull/5042/head
lianahus 4 months ago committed by Aniket
parent 3659e3952b
commit bd80aa85b8
  1. 3
      libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.tsx

@ -36,12 +36,11 @@ export const RemixUIGridCell = (props: RemixUIGridCellProps) => {
const [pinned, setPinned] = useState<boolean>(props.pinned)
useEffect(() => {
console.log("oopsik")
let enabled = false
// check for tags
if (props.tagList && props.tagList.length != 0) {
enabled = props.tagList.some((key) => filterCon.keyValueMap[key]?.enabled)
} else if (filterCon?.keyValueMap['no tag']?.enabled) {
} else if (filterCon?.keyValueMap['no tag']?.enabled || !Object.keys(filterCon?.keyValueMap).length) {
enabled = true
}

Loading…
Cancel
Save