Logs: update panel state when clearing displayed fields (#97543)

Logs: set panel state when clearing displayed fields
pull/97568/head
Matias Chomicki 7 months ago committed by GitHub
parent 9f3073fd17
commit eb01cb6705
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      public/app/features/explore/Logs/Logs.tsx

@ -625,8 +625,12 @@ const UnthemedLogs: React.FunctionComponent<Props> = (props: Props) => {
);
const clearDetectedFields = useCallback(() => {
updatePanelState({
...panelState?.logs,
displayedFields: [],
});
setDisplayedFields([]);
}, []);
}, [panelState?.logs, updatePanelState]);
const onCloseCallbackRef = useRef<() => void>(() => {});

Loading…
Cancel
Save