fix dropdown selection problem
This commit is contained in:
@@ -24,43 +24,6 @@ function DeviceGraph({url, show}) {
|
||||
}
|
||||
}
|
||||
|
||||
// useEffect(() => {
|
||||
// const q = query(collection(db, "testData"));
|
||||
|
||||
// const unsub = onSnapshot(q, (querySnapshot) => {
|
||||
// const testDevices = [];
|
||||
// querySnapshot.forEach((document) => {
|
||||
// const hposTestData = document.data();
|
||||
// // testDevices.push(hposTestData);
|
||||
// // const { deviceSerialNo } = hposTestData;
|
||||
// // console.log(document.data());
|
||||
// });
|
||||
// // setDevices(testDevices);
|
||||
// });
|
||||
|
||||
// return () => unsub;
|
||||
// }, []);
|
||||
|
||||
// useEffect(() => {
|
||||
// // const q = query(collection(db, "testData"));
|
||||
|
||||
// // const unsub = onSnapshot(q, (querySnapshot) => {
|
||||
// // const testDevices = [];
|
||||
// // querySnapshot.forEach((document) => {
|
||||
// // const hposTestData = document.data();
|
||||
// // // testDevices.push(hposTestData);
|
||||
// // // const { deviceSerialNo } = hposTestData;
|
||||
// // console.log(document.data());
|
||||
// // });
|
||||
// // setDevices(testDevices);
|
||||
// // });
|
||||
|
||||
// if (hposTests !== null) {
|
||||
// const result = getTests();
|
||||
// setHposTests(result);
|
||||
// }
|
||||
// }, []);
|
||||
|
||||
return (
|
||||
<div>
|
||||
<AbsorbanceGraph url={url} show={show} />
|
||||
|
||||
Reference in New Issue
Block a user