mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Logs: update panel state when clearing displayed fields (#97543)
Logs: set panel state when clearing displayed fields
This commit is contained in:
parent
9f3073fd17
commit
eb01cb6705
@ -625,8 +625,12 @@ const UnthemedLogs: React.FunctionComponent<Props> = (props: Props) => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
const clearDetectedFields = useCallback(() => {
|
const clearDetectedFields = useCallback(() => {
|
||||||
|
updatePanelState({
|
||||||
|
...panelState?.logs,
|
||||||
|
displayedFields: [],
|
||||||
|
});
|
||||||
setDisplayedFields([]);
|
setDisplayedFields([]);
|
||||||
}, []);
|
}, [panelState?.logs, updatePanelState]);
|
||||||
|
|
||||||
const onCloseCallbackRef = useRef<() => void>(() => {});
|
const onCloseCallbackRef = useRef<() => void>(() => {});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user