Skip to content

Commit

Permalink
Site monitoring: Enable loading skeleton when changing tab from metri…
Browse files Browse the repository at this point in the history
…cs to log (#81912)
  • Loading branch information
sejas authored and pull[bot] committed Nov 28, 2023
1 parent 2668a82 commit 7875379
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const SiteLogsTable = memo( function SiteLogsTable( {
return generateRowKeys( logs );
}, [ logs ] );

const [ latestLogType, setLatestLogType ] = useState( logType );
const [ latestLogType, setLatestLogType ] = useState< LogType | undefined | null >( null );
useEffect( () => {
if ( ! isLoading && logType !== latestLogType ) {
setLatestLogType( logType );
Expand Down

0 comments on commit 7875379

Please sign in to comment.