Skip to content

Commit

Permalink
pushed statement to one level up
Browse files Browse the repository at this point in the history
  • Loading branch information
rutujaac committed Sep 12, 2024
1 parent 8d60653 commit e9f4a58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pebblo/app/pebblo-ui/src/components/applicationList.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export function ApplicationsList(props) {
function onChange(evt) {
let filteredData;
if (evt.target.value) {
const searchValue = evt.target.value.toLocaleLowerCase();
filteredData = tableData?.filter((item) => {
const searchValue = evt.target.value.toLocaleLowerCase();
const isMatch = searchField?.some((sch) =>
item[sch]?.toLocaleLowerCase()?.includes(searchValue)
);
Expand Down
2 changes: 1 addition & 1 deletion pebblo/app/pebblo-ui/src/components/snippetDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ export function SnippetDetails(props) {
function onChange(evt) {
let filteredData;
if (evt.target.value) {
const searchValue = evt.target.value.toLocaleLowerCase();
filteredData = snippetList?.filter((item) => {
const searchValue = evt.target.value.toLocaleLowerCase();
const isMatch = searchField?.some((sch) =>
item[sch]?.toLocaleLowerCase()?.includes(searchValue)
);
Expand Down

0 comments on commit e9f4a58

Please sign in to comment.