CEC-3245 Fix console errors during test (#246)
* fix/fleet-vehicles-search * fix/fleet-name-update * Fix errors in console during test
This commit is contained in:
@@ -161,7 +161,6 @@ exports[`CANFiltersAdd Render 1`] = `
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
f
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
@@ -19,7 +19,7 @@ const MainForm = () => {
|
||||
const { setMessage, setTitle, setSitePath } = useStatusContext();
|
||||
const [redirect, setRedirect] = useState(null);
|
||||
const classes = useStyles();
|
||||
const [canId, setCanId] = useState(null);
|
||||
const [canId, setCanId] = useState(undefined);
|
||||
const [interval, setInterval] = useState("");
|
||||
const [edgeMask, setEdgeMask] = useState("");
|
||||
const queries = new URLSearchParams(useLocation().search);
|
||||
|
||||
@@ -23,7 +23,6 @@ const renderCANFiltersAdd = async () => {
|
||||
</BrowserRouter>
|
||||
</UserProvider>
|
||||
</StatusProvider>
|
||||
f
|
||||
</CANFiltersProvider>
|
||||
);
|
||||
await waitFor(() => {});
|
||||
|
||||
@@ -16,7 +16,7 @@ const MainForm = () => {
|
||||
const { addFleetCANFilter, busy } = useFleetContext();
|
||||
const { token: { idToken: { jwtToken: token } } } = useUserContext();
|
||||
const classes = useStyles();
|
||||
const [canId, setCanId] = useState(null);
|
||||
const [canId, setCanId] = useState(undefined);
|
||||
const [interval, setInterval] = useState("");
|
||||
const [edgeMask, setEdgeMask] = useState("");
|
||||
const [redirect, setRedirect] = useState(null);
|
||||
|
||||
Reference in New Issue
Block a user