- remove unwanted code
	- fix dropdown bug
	- add bar graph for test count
This commit is contained in:
Pritimay Sarkar
2023-07-31 10:49:08 +05:30
parent 1b65914b48
commit af54d53f8f
8 changed files with 135 additions and 62 deletions

View File

@@ -21,6 +21,8 @@ const Devices = () => {
const changeDevice = ({ value }) => {
setDevice(value);
setTestDate(null);
setCurTest(null);
setDays([...new Set(allTests
.filter((x) => x.deviceSerialNumber === value)
.map(x => moment(x.testTime).format("YYYY-MM-DD")))]