fix: eslint warnings (#252)
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import React from 'react';
|
||||
import { useState, useEffect } from 'react';
|
||||
import dynamic from 'next/dynamic';
|
||||
import { testRunCaseStatus } from '@/config/selection';
|
||||
@@ -34,7 +33,7 @@ export default function RunProgressDounut({ statusCounts, testRunCaseStatusMessa
|
||||
const colors = testRunCaseStatus.map((entry) => entry.chartColor);
|
||||
const legend = {
|
||||
labels: {
|
||||
colors: testRunCaseStatus.map((entry) => {
|
||||
colors: testRunCaseStatus.map(() => {
|
||||
if (theme === 'light') {
|
||||
return 'black';
|
||||
} else {
|
||||
@@ -52,7 +51,7 @@ export default function RunProgressDounut({ statusCounts, testRunCaseStatusMessa
|
||||
};
|
||||
|
||||
updateChartDate();
|
||||
}, [statusCounts, theme]);
|
||||
}, [statusCounts, testRunCaseStatusMessages, theme]);
|
||||
|
||||
return <Chart options={chartData.options} series={chartData.series} type="donut" width={'100%'} height={'100%'} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user