mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-09 00:56:37 +08:00
feat(frontend): biome
This commit is contained in:
@@ -206,7 +206,8 @@ export function RatePressureChart({ data, hours }: RatePressureChartProps) {
|
||||
const applyVisibleAxisMax = useCallback(
|
||||
(startPercent: number, endPercent: number) => {
|
||||
const instance = chartRef.current?.getEchartsInstance?.() as
|
||||
EChartsType | undefined;
|
||||
| EChartsType
|
||||
| undefined;
|
||||
if (!instance) return;
|
||||
instance.setOption(
|
||||
{
|
||||
@@ -242,7 +243,8 @@ export function RatePressureChart({ data, hours }: RatePressureChartProps) {
|
||||
}>;
|
||||
}) => {
|
||||
const instance = chartRef.current?.getEchartsInstance?.() as
|
||||
EChartsType | undefined;
|
||||
| EChartsType
|
||||
| undefined;
|
||||
const { start, end } = readZoomPercent(
|
||||
params,
|
||||
chartModel.rpsValues.length,
|
||||
|
||||
Reference in New Issue
Block a user