Skip to content

Commit

Permalink
Update LogViewerSearch.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
tevko authored Sep 26, 2024
1 parent 10c56bd commit 175b474
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/module/src/LogViewer/LogViewerSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export interface LogViewerSearchProps extends SearchInputProps {
export const LogViewerSearch: React.FunctionComponent<LogViewerSearchProps> = forwardRef(({
placeholder = 'Search',
minSearchChars = 1,
parentSearchCB,
...props
}, ref) => {
const [indexAdjuster, setIndexAdjuster] = useState(0);
Expand Down Expand Up @@ -86,8 +87,8 @@ export const LogViewerSearch: React.FunctionComponent<LogViewerSearchProps> = fo
setCurrentSearchedItemCount(DEFAULT_INDEX);
setSearchedWordIndexes([]);
setRowInFocus(defaultRowInFocus);
if (props.parentSearchCB) {
props.parentSearchCB();
if (parentSearchCB) {
parentSearchCB();
}
};

Expand Down

0 comments on commit 175b474

Please sign in to comment.