fixing filter for providers

cleanup
pull/5370/head
lianahus 4 months ago committed by Aniket
parent feea68e89a
commit 2f7638beac
  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