Skip to content

Commit

Permalink
Merge pull request #3573 from signalco-io/next
Browse files Browse the repository at this point in the history
Next
  • Loading branch information
AleksandarDev authored Oct 8, 2023
2 parents 466b54d + 1b27cc9 commit e2c4320
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/apps/app/src/hooks/useSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ import { useMemo, useState } from 'react';
import { objectWithKey } from '@signalco/js';

export function filterFuncObjectStringProps<TItem extends object>(i: TItem, kw: string) {
const kwLower = kw.toLowerCase();
return Object
.keys(i)
.filter(ik => (objectWithKey(i, ik)?.ik?.toString().toLowerCase().indexOf(kw) ?? -1) >= 0)
.filter(ik => {
const val = objectWithKey(i, ik);
return val ? ((val[ik]?.toString().toLowerCase().indexOf(kwLower) ?? -1) >= 0) : false;
})
.length > 0;
}

Expand Down

2 comments on commit e2c4320

@vercel
Copy link

@vercel vercel bot commented on e2c4320 Oct 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

signalco-app – ./web/apps/app

signalco-app-git-main-signalco.vercel.app
signalco-app-signalco.vercel.app
signalco-app.vercel.app
app.signalco.io

@vercel
Copy link

@vercel vercel bot commented on e2c4320 Oct 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

signalco-blog – ./web/apps/blog

signalco-blog-signalco.vercel.app
signalco-blog.vercel.app
signalco-blog-git-main-signalco.vercel.app
blog.signalco.io

Please sign in to comment.