mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Prevent useEffect not firing with because of condition
Signed-off-by: alexfront <alex.andreev.email@gmail.com>
This commit is contained in:
parent
64773f3b69
commit
511fc09419
@ -19,11 +19,7 @@ export interface PodLogSearchProps {
|
||||
export const LogSearch = observer(({ onSearch, model: { logTabData, searchStore, ...model }}: PodLogSearchProps) => {
|
||||
const tabData = logTabData.get();
|
||||
|
||||
if (!tabData) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const logs = tabData.showTimestamps
|
||||
const logs = tabData?.showTimestamps
|
||||
? model.logs.get()
|
||||
: model.logsWithoutTimestamps.get();
|
||||
const { setNextOverlayActive, setPrevOverlayActive, searchQuery, occurrences, activeFind, totalFinds } = searchStore;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user