fix: glitch issue on chart

This commit is contained in:
Jonathan Summers-Muir authored and TzeYiing committed 2022-03-30 14:43:33 +02:00
1 parent e5843d02ca
commit 0c2b5ea011
1 file changed
+6 -8
@@ -170,14 +170,12 @@ export const LogsPreviewer: React.FC<Props> = ({ projectRef, queryType, override
}
>
<div className={condensedLayout ? 'px-4' : ''}>
{showChart && (
<LogEventChart
data={!isLoading ? logData : undefined}
onBarClick={(timestampMicro) => {
handleSearch({ query: filters.search_query, toMicro: timestampMicro })
}}
/>
)}
<LogEventChart
data={!isLoading ? logData : undefined}
onBarClick={(timestampMicro) => {
handleSearch({ query: filters.search_query, toMicro: timestampMicro })
}}
/>
</div>
</div>
<div className="flex flex-col flex-grow relative pt-4">